readme: Add docs for in-ci and not-ci
All checks were successful
/ deploy (push) Successful in 17s

This commit is contained in:
Jonatan Nilsson 2024-11-19 10:46:15 +00:00
parent 6e6d989a50
commit 95f00d8700

View file

@ -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