@askexenow/exe-os 0.8.76 → 0.8.77
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/bin/cli.js +10 -0
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -24859,6 +24859,16 @@ import { existsSync as existsSync23, readFileSync as readFileSync19, writeFileSy
|
|
|
24859
24859
|
import path35 from "path";
|
|
24860
24860
|
import os12 from "os";
|
|
24861
24861
|
var args = process.argv.slice(2);
|
|
24862
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
24863
|
+
try {
|
|
24864
|
+
const pkgPath = path35.join(path35.dirname(new URL(import.meta.url).pathname), "..", "..", "package.json");
|
|
24865
|
+
const pkg = JSON.parse(readFileSync19(pkgPath, "utf8"));
|
|
24866
|
+
console.log(pkg.version);
|
|
24867
|
+
} catch {
|
|
24868
|
+
console.log("unknown");
|
|
24869
|
+
}
|
|
24870
|
+
process.exit(0);
|
|
24871
|
+
}
|
|
24862
24872
|
if (args.includes("--global")) {
|
|
24863
24873
|
process.stderr.write(
|
|
24864
24874
|
"\x1B[33m[deprecated]\x1B[0m --global is deprecated. Use: exe-os claude install\n"
|
package/package.json
CHANGED