spec-up-t 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"repository": {
|
|
@@ -101,6 +101,20 @@ function show_progress() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
# Main script
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
handle_choice
|
|
104
|
+
if [[ -n "$1" && "$1" =~ ^[0-9]$ ]]; then
|
|
105
|
+
choice="$1"
|
|
106
|
+
handle_choice
|
|
107
|
+
else
|
|
108
|
+
display_intro
|
|
109
|
+
prompt_input
|
|
110
|
+
# Allow user to quit with Q/q
|
|
111
|
+
if [[ "$choice" =~ ^[Qq]$ ]]; then
|
|
112
|
+
clear
|
|
113
|
+
echo -e "\n\n ************************************"
|
|
114
|
+
echo " Goodbye! You chose to exit."
|
|
115
|
+
echo -e " ************************************\n\n"
|
|
116
|
+
echo -e "\n\n\nℹ️ Type 'npm run menu' to return to the main menu.\n"
|
|
117
|
+
exit 0
|
|
118
|
+
fi
|
|
119
|
+
handle_choice
|
|
120
|
+
fi
|