File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Command } from "commander" ;
2+ import packageJson from "../../package.json" with { type : "json" } ;
23import { buildCommander } from "./define-command.js" ;
34import type { CommandDef } from "./define-command.js" ;
45import { validateCommand } from "./commands/validate.js" ;
@@ -19,16 +20,14 @@ import { taskCommand } from "./commands/task.js";
1920import { planCommand } from "./commands/plan.js" ;
2021import { syncCommandDef } from "./commands/sync.js" ;
2122
22- const VERSION = "1.0.0" ;
23-
2423export const program = new Command ( ) ;
2524
2625program
2726 . name ( "sysprom" )
2827 . description (
2928 "System Provenance Model CLI — record where every part of a system came from" ,
3029 )
31- . version ( VERSION )
30+ . version ( packageJson . version )
3231 . showHelpAfterError ( true ) ;
3332
3433export const commands : CommandDef [ ] = [
You can’t perform that action at this time.
0 commit comments