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
Copy file name to clipboardExpand all lines: apptrust/commands/flags.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ const (
37
37
BusinessCriticalityFlag="business-criticality"
38
38
MaturityLevelFlag="maturity-level"
39
39
LabelsFlag="labels"
40
+
AddLabelsFlag="add-labels"
41
+
RemoveLabelsFlag="remove-labels"
40
42
UserOwnersFlag="user-owners"
41
43
GroupOwnersFlag="group-owners"
42
44
SyncFlag="sync"
@@ -74,6 +76,8 @@ var flagsMap = map[string]components.Flag{
74
76
BusinessCriticalityFlag: components.NewStringFlag(BusinessCriticalityFlag, "The business criticality level. The following values are supported: "+coreutils.ListToText(model.BusinessCriticalityValues), func(f*components.StringFlag) { f.Mandatory=false }),
75
77
MaturityLevelFlag: components.NewStringFlag(MaturityLevelFlag, "The maturity level. The following values are supported: "+coreutils.ListToText(model.MaturityLevelValues), func(f*components.StringFlag) { f.Mandatory=false }),
76
78
LabelsFlag: components.NewStringFlag(LabelsFlag, "List of semicolon-separated (;) labels in the form of \"key1=value1;key2=value2;...\" (wrapped by quotes).", func(f*components.StringFlag) { f.Mandatory=false }),
79
+
AddLabelsFlag: components.NewStringFlag(AddLabelsFlag, "List of semicolon-separated (;) labels to add in the form of \"key1=value1;key1=value2;key2=value3;...\" (wrapped by quotes)..", func(f*components.StringFlag) { f.Mandatory=false }),
80
+
RemoveLabelsFlag: components.NewStringFlag(RemoveLabelsFlag, "List of semicolon-separated (;) labels to remove in the form of \"key1=value1;key2=value2;...\" (wrapped by quotes).", func(f*components.StringFlag) { f.Mandatory=false }),
77
81
UserOwnersFlag: components.NewStringFlag(UserOwnersFlag, "semicolon-separated (;) list of user owners in the form of \"user1;user2;...\" (wrapped by quotes).", func(f*components.StringFlag) { f.Mandatory=false }),
78
82
GroupOwnersFlag: components.NewStringFlag(GroupOwnersFlag, "semicolon-separated (;) list of group owners in the form of \"group1;group2;...\" (wrapped by quotes).", func(f*components.StringFlag) { f.Mandatory=false }),
79
83
SyncFlag: components.NewBoolFlag(SyncFlag, "Whether to synchronize the operation.", components.WithBoolDefaultValueTrue()),
@@ -204,6 +208,8 @@ var commandFlags = map[string][]string{
0 commit comments