Skip to content
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
1 change: 1 addition & 0 deletions cmd/kosli/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func TestLifecycleControlCommandsAreBeta(t *testing.T) {
"create control": newCreateControlCmd(io.Discard),
"list controls": newListControlsCmd(io.Discard),
"get control": newGetControlCmd(io.Discard),
"update control": newUpdateControlCmd(io.Discard),
"archive control": newArchiveControlCmd(io.Discard),
"unarchive control": newUnarchiveControlCmd(io.Discard),
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/kosli/listEnvironments.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func newListEnvironmentsCmd(out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&o.name, "name", "", envSearchNameFlag)
cmd.Flags().StringSliceVar(&o.envTypes, "type", []string{}, envTypeFilterFlag)
cmd.Flags().StringSliceVar(&o.spaceIDs, "space-id", []string{}, envSpaceIDFilterFlag)
cmd.Flags().StringSliceVar(&o.tags, "tag", []string{}, envTagFilterFlag)
cmd.Flags().StringArrayVar(&o.tags, "tag", []string{}, envTagFilterFlag)
cmd.Flags().StringVar(&o.sort, "sort", "", envSortFlag)
cmd.Flags().StringVar(&o.sortDirection, "sort-direction", "", envSortDirectionFlag)
addListFlags(cmd, &o.listOptions)
Expand Down
2 changes: 1 addition & 1 deletion cmd/kosli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ The ^.kosli_ignore^ will be treated as part of the artifact like any other file,
controlDescriptionFlag = "[optional] The control description."
controlLinkFlag = "[optional] A link for the control, given as 'name=url'. Can be repeated. Replaces all existing links."
controlSearchFlag = "[optional] Only list controls whose name or identifier contains this substring (case-insensitive)."
controlTagFlag = "[optional] Filter by tag, given as 'key' or 'key:value'. Can be repeated."
controlTagFlag = "[optional] Filter by tag, given as 'key' or 'key:value'. Can be repeated to match more than one tag."
controlArchivedFlag = "[optional] List archived controls instead of active ones."
controlSortDirectionFlag = "[optional] The direction to sort controls in. Valid values are: [asc, desc]. (defaults to asc)"
envNameFlag = "The Kosli environment name to assert the artifact against."
Expand Down
Loading