You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs): name the boolean type in the flag table
pflag.UnquoteUsage returns an empty type name for booleans, so 403 of the 1546
flag rows had a blank cell in a column headed Type. That reads as missing data
and left the reader to infer that the flag takes no value. Fall back to the
underlying pflag type name, so a boolean says bool.
The fallback is on the empty string rather than on the bool type specifically,
so any future pflag type that declines to name itself is covered too. It runs
before the NoOptDefVal block, so an optional value reads as bool[=x], matching
the existing string[="x"].
Regenerated all 94 command docs: no cell is empty now, every row is still a
well formed three column row, and comparing against the previous output, 403
rows had an empty type become bool while the other 1143 are untouched. No flag
name or description changed anywhere.
Copy file name to clipboardExpand all lines: cmd/kosli/testdata/output/docs/mintlify/artifact.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,12 @@ is set), registry credentials are resolved as follows:
51
51
|`-t`, `--artifact-type`| string | The type of the artifact to calculate its SHA256 fingerprint. One of: [oci, docker, file, dir]. Only required if you want Kosli to calculate the fingerprint for you (i.e. when you don't specify '`--fingerprint`' on commands that allow it). |
52
52
|`-b`, `--build-url`| string | The url of CI pipeline that built the artifact. (defaulted in some CIs: [docs](/integrations/ci_cd) ). |
53
53
|`-u`, `--commit-url`| string | The url for the git commit that created the artifact. (defaulted in some CIs: [docs](/integrations/ci_cd) ). |
54
-
|`-D`, `--dry-run`||[optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. |
54
+
|`-D`, `--dry-run`|bool|[optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. |
55
55
|`-x`, `--exclude`| strings |[optional] The comma separated list of directories and files to exclude from fingerprinting. Can take glob patterns. Only applicable for `--artifact-type` dir. |
56
56
|`-F`, `--fingerprint`| string |[conditional] The SHA256 fingerprint of the artifact. Only required if you don't specify '`--artifact-type`'. |
57
57
|`-f`, `--flow`| string | The Kosli flow name. |
58
58
|`-g`, `--git-commit`| string |[defaulted] The git commit from which the artifact was created. (defaulted in some CIs: [docs](/integrations/ci_cd), otherwise defaults to HEAD ). |
59
-
|`-h`, `--help`|| help for artifact |
59
+
|`-h`, `--help`|bool| help for artifact |
60
60
|`-n`, `--name`| string |[optional] Artifact display name, if different from file, image or directory name. |
61
61
|`--registry-password`| string |[conditional] The container registry password or access token. Only required if you want to read container image SHA256 digest from a remote container registry and it is not already accessible via Docker/Podman auth files or a credential helper. |
62
62
|`--registry-provider`| string |[deprecated] The docker registry provider or url. Only required if you want to read docker image SHA256 digest from a remote docker registry. (DEPRECATED: no longer used) |
Copy file name to clipboardExpand all lines: cmd/kosli/testdata/output/docs/mintlify/snyk.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,13 @@ In other CI systems, set them explicitly to capture repository metadata.
40
40
|`--attachments`| strings |[optional] The comma-separated list of paths of attachments for the reported attestation. Attachments can be files or directories. All attachments are compressed and uploaded to Kosli's evidence vault. |
41
41
|`-g`, `--commit`| string |[conditional] The git commit for which the attestation is associated to. Becomes required when reporting an attestation for an artifact before reporting it to Kosli. (defaulted in some CIs: [docs](/integrations/ci_cd) ). |
|`-D`, `--dry-run`||[optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. |
43
+
|`-D`, `--dry-run`|bool|[optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. |
44
44
|`-x`, `--exclude`| strings |[optional] The comma separated list of directories and files to exclude from fingerprinting. Can take glob patterns. Only applicable for `--artifact-type` dir. |
45
45
|`--external-fingerprint`| stringToString |[optional] A SHA256 fingerprint of an external attachment represented by `--external-url`. The format is label=fingerprint (labels cannot contain '.' or '='). This flag can be set multiple times. There must be an external url with a matching label for each external fingerprint. |
46
46
|`--external-url`| stringToString |[optional] Add labeled reference URL for an external resource. The format is label=url (labels cannot contain '.' or '='). This flag can be set multiple times. If the resource is a file or dir, you can optionally add its fingerprint via `--external-fingerprint`|
47
47
|`-F`, `--fingerprint`| string |[conditional] The SHA256 fingerprint of the artifact to attach the attestation to. Only required if the attestation is for an artifact and `--artifact-type` and artifact name/path are not used. |
48
48
|`-f`, `--flow`| string | The Kosli flow name. |
49
-
|`-h`, `--help`|| help for snyk |
49
+
|`-h`, `--help`|bool| help for snyk |
50
50
|`-n`, `--name`| string | The name of the attestation as declared in the flow or trail yaml template. |
51
51
|`-o`, `--origin-url`| string |[optional] The url pointing to where the attestation came from or is related. (defaulted to the CI url in some CIs: [docs](/integrations/ci_cd/#defaulted-kosli-command-flags-from-ci-variables) ). |
52
52
|`--redact-commit-info`| strings |[optional] The list of commit info to be redacted before sending to Kosli. Allowed values are one or more of [author, message, branch]. |
@@ -60,7 +60,7 @@ In other CI systems, set them explicitly to capture repository metadata.
60
60
|`--repository`| string |[conditional] The name of the repository (e.g. owner/repo-name). All three of `--repo-id`, `--repo-url` and `--repository` must be set to record repository information (defaulted in some CIs: [docs](/integrations/ci_cd) ). |
61
61
|`-R`, `--scan-results`| string | The path to Snyk scan SARIF results file from 'snyk test' and 'snyk container test'. By default, the Snyk results will be uploaded to Kosli's evidence vault. |
62
62
|`-T`, `--trail`| string | The Kosli trail name. |
63
-
|`--upload-results`||[defaulted] Whether to upload the provided Snyk results file as an attachment to Kosli or not. (default true) |
63
+
|`--upload-results`|bool|[defaulted] Whether to upload the provided Snyk results file as an attachment to Kosli or not. (default true) |
64
64
|`-u`, `--user-data`| string |[optional] The path to a JSON file containing additional data you would like to attach to the attestation. |
0 commit comments