mrmainspring 0.2.6 → 0.2.7
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/dist/cli.js +15 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -67,7 +67,8 @@ export async function runCliCommand(args) {
|
|
|
67
67
|
return true;
|
|
68
68
|
}
|
|
69
69
|
if (command === "setup") {
|
|
70
|
-
|
|
70
|
+
const forceInteractive = args.includes("--interactive") || args.includes("-i");
|
|
71
|
+
if (forceInteractive || (process.stdin.isTTY ?? process.stdout.isTTY)) {
|
|
71
72
|
await runInteractiveSetup();
|
|
72
73
|
}
|
|
73
74
|
else {
|
|
@@ -117,20 +118,19 @@ export async function runCliCommand(args) {
|
|
|
117
118
|
return true;
|
|
118
119
|
}
|
|
119
120
|
const CLOCK_ART = [
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
" Memory · Anchor · Pay ",
|
|
121
|
+
" .-.-. ",
|
|
122
|
+
" (( (__I__) )) ",
|
|
123
|
+
" .'_....._'. ",
|
|
124
|
+
" / / .12 . \\ \\ ",
|
|
125
|
+
" | | ' | ' | | ",
|
|
126
|
+
" | | 9 / 3 | | ",
|
|
127
|
+
" \\ \\ '.6.' / / ",
|
|
128
|
+
" '.`-...-'.' ",
|
|
129
|
+
" /'-- --'\\ ",
|
|
130
|
+
" `\"\"\"\"\"\"\"\"\"` ",
|
|
131
|
+
" ",
|
|
132
|
+
" Mr Mainspring ",
|
|
133
|
+
" Memory · Anchor · Pay ",
|
|
134
134
|
].join("\n");
|
|
135
135
|
async function runInteractiveSetup() {
|
|
136
136
|
process.stdout.write(`\n${CLOCK_ART}\n\n`);
|
package/package.json
CHANGED