File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44 */
55
66import { Command } from "commander" ;
7+ import { createRequire } from "module" ;
78import { indexCommand } from "./cmd-index.js" ;
89import { searchCommand } from "./cmd-search.js" ;
910import { mcpCommand } from "./cmd-mcp.js" ;
1011import { listCommand , deleteCommand } from "./cmd-local.js" ;
1112import { agentCommand } from "./cmd-agent.js" ;
1213
14+ const require = createRequire ( import . meta. url ) ;
15+ const packageJson = require ( "../../package.json" ) ;
16+
1317const program = new Command ( ) ;
1418
1519program
1620 . name ( "context-connectors" )
1721 . description ( "Index and search any data source with Augment's context engine" )
18- . version ( "0.1.0" ) ;
22+ . version ( packageJson . version ) ;
1923
2024// Add subcommands
2125program . addCommand ( indexCommand ) ;
You can’t perform that action at this time.
0 commit comments