Skip to content

Commit

Permalink
Add clasp -v and clasp --version (#229)
Browse files Browse the repository at this point in the history
* Add clasp -v and clasp --version

Signed-off-by: campionfellin <campionfellin@gmail.com>

* Pull version from package.json

Signed-off-by: campionfellin <campionfellin@gmail.com>

* Update issue template to use clasp -v

Signed-off-by: campionfellin <campionfellin@gmail.com>
  • Loading branch information
campionfellin authored and grant committed Jun 25, 2018
1 parent 4a0c511 commit ee8889f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

## Specifications

- Node version (`node -v`)
- Version (`npm list -g | grep clasp`):
- OS (Mac/Linux/Windows)
- Node version (`node -v`):
- Version (`clasp -v`):
- OS (Mac/Linux/Windows):
6 changes: 6 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ commander
.description('Display help')
.action(help);

/**
* Displays clasp version
*/
commander
.version(require('./package.json').version, '-v, --version');

/**
* All other commands are given a help message.
* @example random
Expand Down

0 comments on commit ee8889f

Please sign in to comment.