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
@@ -53,6 +53,8 @@ const (
53
53
SourceTypeArtifactsFlag="source-type-artifacts"
54
54
PropertiesFlag="properties"
55
55
DeletePropertiesFlag="delete-properties"
56
+
IncludeFilterFlag="include-filter"
57
+
ExcludeFilterFlag="exclude-filter"
56
58
)
57
59
58
60
// Flag keys mapped to their corresponding components.Flag definition.
@@ -85,6 +87,8 @@ var flagsMap = map[string]components.Flag{
85
87
SourceTypeReleaseBundlesFlag: components.NewStringFlag(SourceTypeReleaseBundlesFlag, "List of semicolon-separated (;) release bundles in the form of 'name=releaseBundleName1, version=version1[, project-key=project1][, repo-key=repo1]; name=releaseBundleName2, version=version2[, project-key=project2][, repo-key=repo2]' to be included in the new version.", func(f*components.StringFlag) { f.Mandatory=false }),
86
88
SourceTypeApplicationVersionsFlag: components.NewStringFlag(SourceTypeApplicationVersionsFlag, "List of semicolon-separated (;) application versions in the form of 'application-key=app1, version=version1; application-key=app2, version=version2' to be included in the new version.", func(f*components.StringFlag) { f.Mandatory=false }),
87
89
SourceTypePackagesFlag: components.NewStringFlag(SourceTypePackagesFlag, "List of semicolon-separated (;) packages in the form of 'type=packageType1, name=packageName1, version=version1, repo-key=repo1; type=packageType2, name=packageName2, version=version2, repo-key=repo2' to be included in the new version.", func(f*components.StringFlag) { f.Mandatory=false }),
90
+
IncludeFilterFlag: components.NewStringFlag(IncludeFilterFlag, "List of semicolon-separated (;) inclusion filter in the form of 'filter_type=package/artifact ...' for packages, at least one of 'type', 'name', or 'version' must be specified. For artifacts, at least one of 'path' or 'sha256' must be specified.", func(f*components.StringFlag) { f.Mandatory=false }),
91
+
ExcludeFilterFlag: components.NewStringFlag(ExcludeFilterFlag, "List of semicolon-separated (;) inclusion filter in the form of 'filter_type=package/artifact ...' for packages, at least one of 'type', 'name', or 'version' must be specified. For artifacts, at least one of 'path' or 'sha256' must be specified.", func(f*components.StringFlag) { f.Mandatory=false }),
88
92
SourceTypeArtifactsFlag: components.NewStringFlag(SourceTypeArtifactsFlag, "List of semicolon-separated (;) artifacts in the form of 'path=repo/path/to/artifact1[, sha256=hash1]; path=repo/path/to/artifact2[, sha256=hash2]' to be included in the new version.", func(f*components.StringFlag) { f.Mandatory=false }),
89
93
PropertiesFlag: components.NewStringFlag(PropertiesFlag, "Sets or updates custom properties for the application version in format 'key1=value1[,value2,...];key2=value3[,value4,...]'", func(f*components.StringFlag) { f.Mandatory=false }),
90
94
DeletePropertiesFlag: components.NewStringFlag(DeletePropertiesFlag, "Remove a property key and all its values", func(f*components.StringFlag) { f.Mandatory=false }),
@@ -103,6 +107,8 @@ var commandFlags = map[string][]string{
returnnil, errorutils.CheckErrorf("Spec file is empty: must provide at least one source (artifacts, packages, builds, release_bundles, or versions)")
163
+
returnnil, nil, errorutils.CheckErrorf("Spec file is empty: must provide at least one source (artifacts, packages, builds, release_bundles, or versions)")
0 commit comments