Skip to content

Commit

Permalink
feat: Add version cmd to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Healy committed Apr 23, 2020
1 parent 0d29b4c commit 64069e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/daf-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './data-explorer'
import './graphql'
import './sdr'
import './msg'
import './version'

if (!process.argv.slice(2).length) {
program.outputHelp()
Expand Down
5 changes: 5 additions & 0 deletions packages/daf-cli/src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import program from 'commander'

const { version } = require('../package.json')

program.version(version, '-v, --version', 'output the current version')

0 comments on commit 64069e9

Please sign in to comment.