Skip to content

Commit

Permalink
Fix text for --template-file flag in begin-trail command so it does n…
Browse files Browse the repository at this point in the history
…ot mention --use-empty-template flag (#315)
  • Loading branch information
JonJagger authored Sep 9, 2024
1 parent 3568e7e commit 6f11c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kosli/beginTrail.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func newBeginTrailCmd(out io.Writer) *cobra.Command {
ci := WhichCI()
cmd.Flags().StringVar(&o.flow, "flow", "", flowNameFlag)
cmd.Flags().StringVar(&o.payload.Description, "description", "", trailDescriptionFlag)
cmd.Flags().StringVarP(&o.templateFile, "template-file", "f", "", templateFileFlag)
cmd.Flags().StringVarP(&o.templateFile, "template-file", "f", "", templateFileSimpleFlag)
cmd.Flags().StringVarP(&o.userDataFile, "user-data", "u", "", trailUserDataFlag)
cmd.Flags().StringVarP(&o.commitSHA, "commit", "g", DefaultValueForCommit(ci, false), beginTrailCommitFlag)
cmd.Flags().StringSliceVar(&o.redactedCommitInfo, "redact-commit-info", []string{}, attestationRedactCommitInfoFlag)
Expand Down
1 change: 1 addition & 0 deletions cmd/kosli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ The service principal needs to have the following permissions:
visibilityFlag = "[defaulted] The visibility of the Kosli flow. Valid visibilities are [public, private]."
templateFlag = "[defaulted] The comma-separated list of required compliance controls names."
templateFileFlag = "[optional] The path to a yaml template file. Cannot be used together with --use-empty-template"
templateFileSimpleFlag = "[optional] The path to a yaml template file."
useEmptyTemplateFlag = "Use an empty template for the flow creation without specifying a file. Cannot be used together with --template or --template-file"
approvalUserDataFlag = "[optional] The path to a JSON file containing additional data you would like to attach to the approval."
evidenceUserDataFlag = "[optional] The path to a JSON file containing additional data you would like to attach to the evidence."
Expand Down

0 comments on commit 6f11c4d

Please sign in to comment.