Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text for --template-file flag in begin-trail command so it does n… #315

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading