@devchangjun/ctm 0.1.7 → 0.1.8
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { createRequire } from "module";
|
|
4
5
|
import { Command } from "commander";
|
|
5
6
|
|
|
6
7
|
// src/commands/init.ts
|
|
@@ -1218,8 +1219,10 @@ async function doRemove(tree, branchName, options) {
|
|
|
1218
1219
|
}
|
|
1219
1220
|
|
|
1220
1221
|
// src/index.ts
|
|
1222
|
+
var require2 = createRequire(import.meta.url);
|
|
1223
|
+
var { version } = require2("../package.json");
|
|
1221
1224
|
var program = new Command();
|
|
1222
|
-
program.name("ctm").description("Colo Ticket Manager \u2014 Jira-driven branch management").version(
|
|
1225
|
+
program.name("ctm").description("Colo Ticket Manager \u2014 Jira-driven branch management").version(version);
|
|
1223
1226
|
program.command("init").description("Configure CTM with Jira credentials and project settings").action(initCommand);
|
|
1224
1227
|
program.command("issues").alias("ls").description("List Jira issues assigned to you").option("-a, --all", "Show issues from all projects").option("-s, --status <status>", "Filter by status").option("-p, --project <project>", "Filter by project key").action(issuesCommand);
|
|
1225
1228
|
program.command("start [key]").description("Create and checkout a branch for a Jira issue (e.g. CTM-123 or just 123)").option("-w, --worktree", "Create a linked worktree instead of switching branches").action(startCommand);
|