cleanup and config work 🤷
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
"": {
|
||||
"name": "soupclown",
|
||||
"dependencies": {
|
||||
"commander": "^14.0.3",
|
||||
"zod": "^4.3.6",
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -22,6 +23,8 @@
|
||||
|
||||
"bun-types": ["bun-types@1.3.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-QXKeHLlOLqQX9LgYaHJfzdBaV21T63HhFJnvuRCcjZiaUDpbs5ED1MgxbMra71CsryN/1dAoXuJJJwIv/2drVA=="],
|
||||
|
||||
"commander": ["commander@14.0.3", "", {}, "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="],
|
||||
|
||||
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||
|
||||
"undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="],
|
||||
|
||||
+19
-1
@@ -1,3 +1,21 @@
|
||||
import { Command, program } from "commander";
|
||||
import { SC_CONFIG } from "./src/interface/config";
|
||||
|
||||
console.log('config', JSON.stringify(SC_CONFIG, null, 2))
|
||||
const c = new Command();
|
||||
|
||||
export function RUN_CLI(){
|
||||
c
|
||||
.name('soupclown')
|
||||
.description('Soupclown system')
|
||||
|
||||
c.option('--showConfig', 'display the configured config')
|
||||
|
||||
const options = c.parse().opts();
|
||||
|
||||
if(options.showConfig){
|
||||
console.log(JSON.stringify(SC_CONFIG, null, 2))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
RUN_CLI();
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"typescript": "^5"
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": "^14.0.3",
|
||||
"zod": "^4.3.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ export class SC_CONFIG_C {
|
||||
}
|
||||
|
||||
private async _writeConfigFile(path = DEFAULT_CONFIG_PATH){
|
||||
await Bun.write(path, JSON.stringify(this.runningConfig));
|
||||
await Bun.write(path, JSON.stringify(this.runningConfig, null, 2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user