ai-forge-cli 0.1.2 → 0.1.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/dist/index.js +15 -1
- package/dist/version-VO3LHLDO.js +22 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,10 +11,24 @@ var main = defineCommand({
|
|
|
11
11
|
version,
|
|
12
12
|
description: "TypeScript stack scaffolding & enforcement CLI"
|
|
13
13
|
},
|
|
14
|
+
args: {
|
|
15
|
+
v: {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
alias: ["V"],
|
|
18
|
+
description: "Show version"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
14
21
|
subCommands: {
|
|
15
22
|
init: () => import("./init-VYOLCRGL.js").then((m) => m.default),
|
|
16
23
|
"add:feature": () => import("./add-feature-YXWSRIVE.js").then((m) => m.default),
|
|
17
|
-
check: () => import("./check-RCJRXIU5.js").then((m) => m.default)
|
|
24
|
+
check: () => import("./check-RCJRXIU5.js").then((m) => m.default),
|
|
25
|
+
version: () => import("./version-VO3LHLDO.js").then((m) => m.default)
|
|
26
|
+
},
|
|
27
|
+
run({ args }) {
|
|
28
|
+
if (args.v) {
|
|
29
|
+
console.log(version);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
18
32
|
}
|
|
19
33
|
});
|
|
20
34
|
runMain(main);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/commands/version.ts
|
|
4
|
+
import { defineCommand } from "citty";
|
|
5
|
+
import { createRequire } from "module";
|
|
6
|
+
import { dirname, join } from "path";
|
|
7
|
+
import { fileURLToPath } from "url";
|
|
8
|
+
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
var require2 = createRequire(import.meta.url);
|
|
10
|
+
var { version } = require2(join(__dirname, "..", "package.json"));
|
|
11
|
+
var version_default = defineCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "version",
|
|
14
|
+
description: "Show CLI version"
|
|
15
|
+
},
|
|
16
|
+
run() {
|
|
17
|
+
console.log(version);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
version_default as default
|
|
22
|
+
};
|