shoud-cli 1.0.8 → 1.0.10
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/bin/shoud.js +10 -6
- package/package.json +1 -1
package/bin/shoud.js
CHANGED
|
@@ -15,7 +15,7 @@ const BANNER_ART = [
|
|
|
15
15
|
" ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ "
|
|
16
16
|
];
|
|
17
17
|
|
|
18
|
-
// ─── Static Banner (
|
|
18
|
+
// ─── Static Banner (prints at the start of commands) ──────
|
|
19
19
|
function printStaticBanner() {
|
|
20
20
|
const color = chalk.hex('#B5F96C');
|
|
21
21
|
console.log(color(BANNER_ART.join('\n')));
|
|
@@ -95,7 +95,7 @@ async function main() {
|
|
|
95
95
|
args[0] === 'help' || args[0] === '--help' || args[0] === '-h' ||
|
|
96
96
|
args[0] === '--version' || args[0] === '-v') {
|
|
97
97
|
if (args[0] === '--version' || args[0] === '-v') {
|
|
98
|
-
program.version('1.0.
|
|
98
|
+
program.version('1.0.9');
|
|
99
99
|
program.parse(process.argv);
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
@@ -105,13 +105,16 @@ async function main() {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
program
|
|
108
|
-
.version('1.0.
|
|
108
|
+
.version('1.0.9')
|
|
109
109
|
.description('SHOUD Terminal Agent');
|
|
110
110
|
|
|
111
111
|
program
|
|
112
112
|
.command('login')
|
|
113
113
|
.description('Authenticate this device with your SHOUD account')
|
|
114
|
-
.action(
|
|
114
|
+
.action(() => {
|
|
115
|
+
// Optionally show banner before login? We'll keep it clean.
|
|
116
|
+
login();
|
|
117
|
+
});
|
|
115
118
|
|
|
116
119
|
// Placeholder for status
|
|
117
120
|
program
|
|
@@ -129,9 +132,10 @@ async function main() {
|
|
|
129
132
|
return;
|
|
130
133
|
}
|
|
131
134
|
const taskPrompt = promptArr.join(' ');
|
|
132
|
-
|
|
133
|
-
// ✅ After task completes, show the static banner
|
|
135
|
+
// ✅ Show the static banner at the start
|
|
134
136
|
printStaticBanner();
|
|
137
|
+
await executeTask(taskPrompt);
|
|
138
|
+
// No banner at the end (removed)
|
|
135
139
|
});
|
|
136
140
|
|
|
137
141
|
program.parse(process.argv);
|