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
+33-12Lines changed: 33 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,19 @@ import (
8
8
)
9
9
10
10
const (
11
-
Ping="ping"
12
-
VersionCreate="version-create"
13
-
VersionPromote="version-promote"
14
-
VersionRollback="version-rollback"
15
-
VersionDelete="version-delete"
16
-
VersionRelease="version-release"
17
-
VersionUpdate="version-update"
18
-
PackageBind="package-bind"
19
-
PackageUnbind="package-unbind"
20
-
AppCreate="app-create"
21
-
AppUpdate="app-update"
22
-
AppDelete="app-delete"
11
+
Ping="ping"
12
+
VersionCreate="version-create"
13
+
VersionPromote="version-promote"
14
+
VersionRollback="version-rollback"
15
+
VersionDelete="version-delete"
16
+
VersionRelease="version-release"
17
+
VersionUpdate="version-update"
18
+
VersionUpdateSources="version-update-sources"
19
+
PackageBind="package-bind"
20
+
PackageUnbind="package-unbind"
21
+
AppCreate="app-create"
22
+
AppUpdate="app-update"
23
+
AppDelete="app-delete"
23
24
)
24
25
25
26
const (
@@ -44,6 +45,7 @@ const (
44
45
SyncFlag="sync"
45
46
PromotionTypeFlag="promotion-type"
46
47
DryRunFlag="dry-run"
48
+
FailFastFlag="fail-fast"
47
49
ExcludeReposFlag="exclude-repos"
48
50
IncludeReposFlag="include-repos"
49
51
PropsFlag="props"
@@ -85,6 +87,7 @@ var flagsMap = map[string]components.Flag{
85
87
SyncFlag: components.NewBoolFlag(SyncFlag, "Whether to synchronize the operation.", components.WithBoolDefaultValueTrue()),
86
88
PromotionTypeFlag: components.NewStringFlag(PromotionTypeFlag, "The promotion type. The following values are supported: "+coreutils.ListToText(model.PromotionTypeValues), func(f*components.StringFlag) { f.Mandatory=false; f.DefaultValue=model.PromotionTypeCopy }),
87
89
DryRunFlag: components.NewBoolFlag(DryRunFlag, "Perform a simulation of the operation.", components.WithBoolDefaultValueFalse()),
90
+
FailFastFlag: components.NewBoolFlag(FailFastFlag, "Stop the operation on the first error. Only relevant when sources are provided.", components.WithBoolDefaultValueTrue()),
88
91
ExcludeReposFlag: components.NewStringFlag(ExcludeReposFlag, "Semicolon-separated list of repositories to exclude.", func(f*components.StringFlag) { f.Mandatory=false }),
89
92
IncludeReposFlag: components.NewStringFlag(IncludeReposFlag, "Semicolon-separated list of repositories to include.", func(f*components.StringFlag) { f.Mandatory=false }),
90
93
PropsFlag: components.NewStringFlag(PropsFlag, "Semicolon-separated list of properties in the form of 'key1=value1;key2=value2;...' to be added to each artifact.", func(f*components.StringFlag) { f.Mandatory=false }),
@@ -168,6 +171,24 @@ var commandFlags = map[string][]string{
0 commit comments