-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(version): support --version flag (#138)
This adds support for the `--version` CLI flag. This outputs the version number for both shx and the bundled version of ShellJS. This adds a test to strictly assert the output format, so that this can be reliably parsed if necessary. This also reorganizes the structure of some test cases (without changing their logic). Lastly, this changes the file modes for 2 files. These were previously unnecessarily executable. Fixes #111 Test: case: 'supports --version'
- Loading branch information
Showing
3 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters