@ordewell/cli 0.4.2 → 0.4.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/main.js +18 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -133,6 +133,7 @@ Other:
|
|
|
133
133
|
ordewell setup Interactive first-run setup wizard
|
|
134
134
|
ordewell plugins list|install|remove|create Manage runner plugins
|
|
135
135
|
ordewell --help Show this help
|
|
136
|
+
ordewell --version Print the installed version (alias: version, -v)
|
|
136
137
|
|
|
137
138
|
TUI options:
|
|
138
139
|
--workspace /path Workspace directory (default: cwd)
|
|
@@ -5704,6 +5705,19 @@ var COMMANDS = {
|
|
|
5704
5705
|
tui: handleTui
|
|
5705
5706
|
};
|
|
5706
5707
|
|
|
5708
|
+
// src/version.ts
|
|
5709
|
+
var import_fs7 = require("fs");
|
|
5710
|
+
var import_path5 = require("path");
|
|
5711
|
+
function cliVersion() {
|
|
5712
|
+
try {
|
|
5713
|
+
const pkg = JSON.parse((0, import_fs7.readFileSync)((0, import_path5.join)(__dirname, "..", "package.json"), "utf8"));
|
|
5714
|
+
const version = pkg.version;
|
|
5715
|
+
return typeof version === "string" && version ? version : "unknown";
|
|
5716
|
+
} catch {
|
|
5717
|
+
return "unknown";
|
|
5718
|
+
}
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5707
5721
|
// src/main.ts
|
|
5708
5722
|
async function main() {
|
|
5709
5723
|
loadEnvFile();
|
|
@@ -5713,6 +5727,10 @@ async function main() {
|
|
|
5713
5727
|
printHelp();
|
|
5714
5728
|
return;
|
|
5715
5729
|
}
|
|
5730
|
+
if (command === "--version" || command === "-v" || command === "version") {
|
|
5731
|
+
console.log(cliVersion());
|
|
5732
|
+
return;
|
|
5733
|
+
}
|
|
5716
5734
|
const handler = COMMANDS[command];
|
|
5717
5735
|
if (!handler) {
|
|
5718
5736
|
console.error(`Unknown command: ${command}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordewell/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Ordewell CLI and TUI — plan, run and verify coding-agent tasks from the terminal.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Alessandro Costanzo Ciano",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"typecheck": "tsc --noEmit"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@ordewell/core": "^0.4.
|
|
52
|
-
"@ordewell/web": "^0.4.
|
|
51
|
+
"@ordewell/core": "^0.4.3",
|
|
52
|
+
"@ordewell/web": "^0.4.3",
|
|
53
53
|
"string-width": "^7.2.0",
|
|
54
54
|
"ws": "^8.18.0"
|
|
55
55
|
},
|