Command line interface for Kusari.
-
Have Go installed.
-
go install github.com/kusaridev/kusari-cli/kusari@latest
Logs into Kusari. Default parameters are good for most use cases. Access token
is stored in $HOME/.kusari/tokens.json
.
Scans a diff on a git repository using Kusari Inspector. This will scan a set of changes, so a "git diff" command is needed. Usage:
kusari repo scan <directory> <git-diff command>
Where <directory>
is the directory of the git repository you wish to scan,
and <git-diff command>
is the command to pass to git diff
to generate the
set of changes. See Git
documentation, for examples of
commands.
Example:
kusari repo scan ~/git/guac HEAD^
Will scan my ~/git/guac
repository with the git-diff command HEAD^
which
compares my working tree with the commit before the most recent commit.
Kusari Inspector results will be stored and displayed in the Kusari Console.