@11agents/cli 0.1.5 → 0.1.6
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/bin/11agents.js +6 -0
- package/package.json +1 -1
package/bin/11agents.js
CHANGED
|
@@ -17,6 +17,7 @@ function usage() {
|
|
|
17
17
|
|
|
18
18
|
Usage:
|
|
19
19
|
11agents help
|
|
20
|
+
11agents -v | --version
|
|
20
21
|
11agents runtime scan
|
|
21
22
|
11agents runtime register [--server <url>] [--token <token>] [--machine <key>]
|
|
22
23
|
11agents daemon start [--server <url>] [--token <token>] [--machine <key>] [--task-interval <seconds>] [--project-refresh-interval <seconds>] [--background]
|
|
@@ -50,6 +51,11 @@ Runtime task workspace:
|
|
|
50
51
|
|
|
51
52
|
async function main() {
|
|
52
53
|
const argv = process.argv.slice(2)
|
|
54
|
+
if (argv.length === 1 && (argv[0] === '-v' || argv[0] === '--version')) {
|
|
55
|
+
console.log(CLI_VERSION)
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
const { positional, flags } = parseArgs(argv)
|
|
54
60
|
const [command, subcommand, target] = positional
|
|
55
61
|
|