Skip to content

Commit

Permalink
Add tests for get command
Browse files Browse the repository at this point in the history
  • Loading branch information
particleflux committed Oct 3, 2018
1 parent 9ac8c3c commit 15088ec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -94,3 +94,18 @@ Comparing version for scripting
1
$ semver compare 10.1.4-rc4 10.4.2-rc1
-1

Extract version part

$ semver get patch 1.2.3
3
$ semver get minor 1.2.3
2
$ semver get major 1.2.3
1
$ semver get prerel 1.2.3-rc.4
rc.4
$ semver get prerel 1.2.3-alpha.4.5
alpha.4.5
$ semver get build 1.2.3-rc.4+build.567
build.567

0 comments on commit 15088ec

Please sign in to comment.