This commit is contained in:
parent
6e6d989a50
commit
95f00d8700
1 changed files with 7 additions and 4 deletions
11
README.md
11
README.md
|
@ -10,14 +10,17 @@ Returns true if inside CI. Otherwise returns false.
|
|||
|
||||
# CLI
|
||||
|
||||
`inside-ci`
|
||||
## `inside-ci` or `in-ci`
|
||||
|
||||
Returns code 0 if inside CI. Otherwise returns an error code of 1.
|
||||
|
||||
`inside-ci || echo 'We are not inside CI, install some stuff'`
|
||||
|
||||
`inside-ci && echo 'We are inside CI, install some stuff'`
|
||||
* `inside-ci || echo 'We are not inside CI, install some stuff'`
|
||||
* `in-ci && echo 'We are inside CI, install some stuff'`
|
||||
|
||||
Example:
|
||||
|
||||
`is-ci || husky install`
|
||||
|
||||
## `not-ci`
|
||||
|
||||
Inverse of the above command
|
||||
|
|
Loading…
Reference in a new issue