sdlc-workflow 1.0.7 → 1.0.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.
Files changed (2) hide show
  1. package/bin/cli.js +15 -3
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -15,10 +15,22 @@ async function main() {
15
15
  const args = process.argv.slice(2);
16
16
  const command = args[0] || "init";
17
17
 
18
+ if (command === "version" || command === "--version" || command === "-v") {
19
+ const pkg = JSON.parse(await readFile(join(PKG_ROOT, "package.json"), "utf8"));
20
+ console.log(pkg.version);
21
+ process.exit(0);
22
+ }
23
+
18
24
  if (command !== "init") {
19
- console.log("Usage: npx sdlc-workflow init");
20
- console.log(" Scaffolds SDLC docs and templates into current project.");
21
- console.log(" Installs for: Cursor, Claude, Antigravity, Codex.");
25
+ console.log("Usage: npx sdlc-workflow <command>");
26
+ console.log("");
27
+ console.log("Commands:");
28
+ console.log(" init Scaffold SDLC docs and templates (Cursor, Claude, Antigravity, Codex)");
29
+ console.log(" version Print current version");
30
+ console.log("");
31
+ console.log("Examples:");
32
+ console.log(" npx sdlc-workflow init");
33
+ console.log(" npx sdlc-workflow version");
22
34
  process.exit(1);
23
35
  }
24
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdlc-workflow",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Scaffold SDLC workflow docs and templates for Cursor, Claude, and dev teams",
5
5
  "type": "module",
6
6
  "bin": {