Skip to content

Commit

Permalink
Added proper vesion to -V command
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Sep 27, 2023
1 parent 321b66e commit dcd9366
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-hornets-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'capkit': patch
---

Added proper version to -V command
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env node
import { Command } from 'commander';
import { init } from './commands/init.js';
import fs from 'fs';

const program = new Command();

program.version('0.0.1');
program.version(JSON.parse(String(fs.readFileSync('package.json')))['version']);
program.command('initialize').alias('init').description('initialize capkit').action(init);
program.parse(process.argv);

Expand Down

0 comments on commit dcd9366

Please sign in to comment.