@gh-symphony/cli 0.0.16 → 0.0.17
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 +1 -1
- package/dist/version-YVM2A25J.js +16 -0
- package/package.json +4 -4
- package/dist/version-VBB62JWI.js +0 -30
package/dist/index.js
CHANGED
|
@@ -250,7 +250,7 @@ var COMMANDS = {
|
|
|
250
250
|
project: () => import("./project-557FE2GD.js"),
|
|
251
251
|
repo: () => import("./repo-R3XBIVAX.js"),
|
|
252
252
|
config: () => import("./config-cmd-AZ7POMAA.js"),
|
|
253
|
-
version: () => import("./version-
|
|
253
|
+
version: () => import("./version-YVM2A25J.js")
|
|
254
254
|
};
|
|
255
255
|
function addGlobalOptions(command) {
|
|
256
256
|
return command.option("--config <dir>", "Config directory").addOption(new Option("--config-dir <dir>").hideHelp()).option("-v, --verbose", "Enable verbose output").option("--json", "Output in JSON format").option("--no-color", "Disable color output");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/commands/version.ts
|
|
4
|
+
var handler = async (_args, options) => {
|
|
5
|
+
const version = "0.0.17";
|
|
6
|
+
if (options.json) {
|
|
7
|
+
process.stdout.write(JSON.stringify({ version }) + "\n");
|
|
8
|
+
} else {
|
|
9
|
+
process.stdout.write(`gh-symphony v${version}
|
|
10
|
+
`);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
var version_default = handler;
|
|
14
|
+
export {
|
|
15
|
+
version_default as default
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gh-symphony/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "hojinzs",
|
|
6
6
|
"description": "Interactive CLI for GitHub Symphony orchestration",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
|
-
"@gh-symphony/dashboard": "0.0.14",
|
|
45
44
|
"@gh-symphony/core": "0.0.14",
|
|
46
|
-
"@gh-symphony/worker": "0.0.14",
|
|
47
45
|
"@gh-symphony/tracker-github": "0.0.14",
|
|
48
|
-
"@gh-symphony/
|
|
46
|
+
"@gh-symphony/dashboard": "0.0.14",
|
|
47
|
+
"@gh-symphony/orchestrator": "0.0.14",
|
|
48
|
+
"@gh-symphony/worker": "0.0.14"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|
package/dist/version-VBB62JWI.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/commands/version.ts
|
|
4
|
-
import { readFile } from "fs/promises";
|
|
5
|
-
import { resolve, dirname } from "path";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
|
-
var handler = async (_args, options) => {
|
|
8
|
-
let version = "0.0.0";
|
|
9
|
-
try {
|
|
10
|
-
const pkgPath = resolve(
|
|
11
|
-
dirname(fileURLToPath(import.meta.url)),
|
|
12
|
-
"..",
|
|
13
|
-
"..",
|
|
14
|
-
"package.json"
|
|
15
|
-
);
|
|
16
|
-
const pkg = JSON.parse(await readFile(pkgPath, "utf8"));
|
|
17
|
-
version = pkg.version ?? version;
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
if (options.json) {
|
|
21
|
-
process.stdout.write(JSON.stringify({ version }) + "\n");
|
|
22
|
-
} else {
|
|
23
|
-
process.stdout.write(`gh-symphony v${version}
|
|
24
|
-
`);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var version_default = handler;
|
|
28
|
-
export {
|
|
29
|
-
version_default as default
|
|
30
|
-
};
|