-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…2983) * Removed log from unknown flag or command, since it happens before logger is set Signed-off-by: Felipe Avelar <[email protected]>
- Loading branch information
1 parent
1463a4a
commit 88a5703
Showing
9 changed files
with
142 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Error: unknown command "invalid" for "kics" | ||
Run 'kics --help' for usage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: unknown flag: --invalid-flag | ||
Usage: | ||
kics [command] | ||
|
||
Available Commands: | ||
generate-id Generates uuid for query | ||
help Help about any command | ||
list-platforms List supported platforms | ||
scan Executes a scan analysis | ||
version Displays the current version | ||
|
||
Flags: | ||
--ci display only log messages to CLI output (mutually exclusive with silent) | ||
-h, --help help for kics | ||
-f, --log-format string determines log format (pretty,json) (default "pretty") | ||
--log-level string determines log level (TRACE,DEBUG,INFO,WARN,ERROR,FATAL) (default "INFO") | ||
--log-path string path to log files, (defaults to ${PWD}/info.log) | ||
--no-color disable CLI color output | ||
-s, --silent silence stdout messages (mutually exclusive with verbose and ci) | ||
-v, --verbose write logs to stdout too (mutually exclusive with silent) | ||
|
||
Use "kics [command] --help" for more information about a command. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Error: unknown flag: --invalid-flag | ||
Usage: | ||
kics scan [flags] | ||
|
||
Flags: | ||
--config string path to configuration file | ||
--exclude-categories strings exclude categories by providing its name | ||
can be provided multiple times or as a comma separated string | ||
example: 'Access control,Best practices' | ||
-e, --exclude-paths strings exclude paths from scan | ||
supports glob and can be provided multiple times or as a quoted comma separated string | ||
example: './shouldNotScan/*,somefile.txt' | ||
--exclude-queries strings exclude queries by providing the query ID | ||
can be provided multiple times or as a comma separated string | ||
example: 'e69890e6-fce5-461d-98ad-cb98318dfc96,4728cd65-a20c-49da-8b31-9c08b423e4db' | ||
-x, --exclude-results strings exclude results by providing the similarity ID of a result | ||
can be provided multiple times or as a comma separated string | ||
example: 'fec62a97d569662093dbb9739360942f...,31263s5696620s93dbb973d9360942fc2a...' | ||
--fail-on strings which kind of results should return an exit code different from 0 | ||
accetps: high, medium, low and info | ||
example: "high,low" (default [high,medium,low,info]) | ||
-h, --help help for scan | ||
--ignore-on-exit string defines which kind of non-zero exits code should be ignored | ||
accepts: all, results, errors, none | ||
example: if 'results' is set, only engine errors will make KICS exit code different from 0 (default "none") | ||
--minimal-ui simplified version of CLI output | ||
--no-progress hides the progress bar | ||
-o, --output-path string directory path to store reports | ||
-p, --path string path or directory path to scan | ||
-d, --payload-path string path to store internal representation JSON file | ||
--preview-lines int number of lines to be display in CLI results (min: 1, max: 30) (default 3) | ||
-q, --queries-path string path to directory with queries (default "./assets/queries") | ||
--report-formats strings formats in which the results will be exported (json, sarif, html) | ||
-t, --type strings case insensitive list of platform types to scan | ||
(Ansible, CloudFormation, Dockerfile, Kubernetes, OpenAPI, Terraform) | ||
|
||
Global Flags: | ||
--ci display only log messages to CLI output (mutually exclusive with silent) | ||
-f, --log-format string determines log format (pretty,json) (default "pretty") | ||
--log-level string determines log level (TRACE,DEBUG,INFO,WARN,ERROR,FATAL) (default "INFO") | ||
--log-path string path to log files, (defaults to ${PWD}/info.log) | ||
--no-color disable CLI color output | ||
-s, --silent silence stdout messages (mutually exclusive with verbose and ci) | ||
-v, --verbose write logs to stdout too (mutually exclusive with silent) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: unknown shorthand flag: 'i' in -i | ||
Usage: | ||
kics [command] | ||
|
||
Available Commands: | ||
generate-id Generates uuid for query | ||
help Help about any command | ||
list-platforms List supported platforms | ||
scan Executes a scan analysis | ||
version Displays the current version | ||
|
||
Flags: | ||
--ci display only log messages to CLI output (mutually exclusive with silent) | ||
-h, --help help for kics | ||
-f, --log-format string determines log format (pretty,json) (default "pretty") | ||
--log-level string determines log level (TRACE,DEBUG,INFO,WARN,ERROR,FATAL) (default "INFO") | ||
--log-path string path to log files, (defaults to ${PWD}/info.log) | ||
--no-color disable CLI color output | ||
-s, --silent silence stdout messages (mutually exclusive with verbose and ci) | ||
-v, --verbose write logs to stdout too (mutually exclusive with silent) | ||
|
||
Use "kics [command] --help" for more information about a command. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters