greenrun-cli 0.1.3 → 0.1.4
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 +6 -0
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.js +6 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,6 +15,7 @@ function printHelp() {
|
|
|
15
15
|
|
|
16
16
|
Usage:
|
|
17
17
|
greenrun init Interactive setup wizard
|
|
18
|
+
greenrun update Update command templates to latest version
|
|
18
19
|
greenrun serve Start MCP server
|
|
19
20
|
greenrun --version, -v Print version
|
|
20
21
|
greenrun --help, -h Print this help
|
|
@@ -42,6 +43,11 @@ async function main() {
|
|
|
42
43
|
await runInit(args.slice(1));
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
46
|
+
if (command === 'update') {
|
|
47
|
+
const { runUpdate } = await import('./commands/init.js');
|
|
48
|
+
runUpdate();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
45
51
|
if (command === 'serve') {
|
|
46
52
|
const { startServer } = await import('./server.js');
|
|
47
53
|
await startServer();
|
package/dist/commands/init.d.ts
CHANGED
package/dist/commands/init.js
CHANGED
|
@@ -153,6 +153,12 @@ function installCommands() {
|
|
|
153
153
|
console.log(` Installed /${cmd.replace('.md', '')}`);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
export function runUpdate() {
|
|
157
|
+
console.log('\nGreenrun - Updating templates\n');
|
|
158
|
+
installCommands();
|
|
159
|
+
installClaudeMd();
|
|
160
|
+
console.log('\nDone! Templates updated to latest version.\n');
|
|
161
|
+
}
|
|
156
162
|
export async function runInit(args) {
|
|
157
163
|
const opts = parseFlags(args);
|
|
158
164
|
const interactive = !opts.token;
|