Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(version): support --version flag #138

Merged
merged 1 commit into from Jun 20, 2018
Merged

feat(version): support --version flag #138

merged 1 commit into from Jun 20, 2018

Conversation

nfischer
Copy link
Member

@nfischer nfischer commented Jun 17, 2018

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'

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).

Fixes #111
Test: case: 'supports --version'
@nfischer nfischer added the feat label Jun 17, 2018
@nfischer nfischer requested a review from freitagbr June 17, 2018 02:22
@codecov-io
Copy link

codecov-io commented Jun 17, 2018

Codecov Report

Merging #138 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #138   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          22     25    +3     
=====================================
+ Hits           22     25    +3
Impacted Files Coverage Δ
src/printCmdRet.js 100% <ø> (ø) ⬆️
src/shx.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63bdaa4...ecb1d38. Read the comment docs.

@freitagbr
Copy link
Contributor

LGTM

@nfischer nfischer merged commit c0d7b8b into master Jun 20, 2018
@nfischer nfischer deleted the feat-version-flag branch June 20, 2018 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants