Skip to content

Commit

Permalink
fix: add correct version number to cli (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmickel authored Aug 6, 2024
1 parent bc96055 commit 4ff493e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ const templatesDir = getTemplatesDir();
const program = new Command();

export function cli(_args: string[]) {
const packageJson = JSON.parse(
fs.readFileSync(new URL('../../package.json', import.meta.url), 'utf8'),
);
program
.name('codewhisper')
.description('A powerful tool for converting code to AI-friendly prompts')
.version('1.0.0');
.version(packageJson.version);

program
.command('list-models')
Expand Down

0 comments on commit 4ff493e

Please sign in to comment.