From 95f00d87004ca2fc95180d437eb44122d8ce3b3f Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 19 Nov 2024 10:46:15 +0000 Subject: [PATCH] readme: Add docs for in-ci and not-ci --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 40e74cd..bda0a0a 100644 --- a/README.md +++ b/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