Skip to content

Commit 938e748

Browse files
committed
Align CLI commands with updated spec and API
1 parent b6b63db commit 938e748

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

apptrust/commands/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var flagsMap = map[string]components.Flag{
8181
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 }),
8282
TagFlag: components.NewStringFlag(TagFlag, "A tag to associate with the version. Must contain only alphanumeric characters, hyphens (-), underscores (_), and dots (.).", func(f *components.StringFlag) { f.Mandatory = false }),
8383
SourceTypeBuildsFlag: components.NewStringFlag(SourceTypeBuildsFlag, "List of semicolon-separated (;) builds in the form of 'name=buildName1, id=runID1, [include-deps=true]; name=buildName2, id=runID2, [include-deps=true]' to be included in the new version.", func(f *components.StringFlag) { f.Mandatory = false }),
84-
SourceTypeReleaseBundlesFlag: components.NewStringFlag(SourceTypeReleaseBundlesFlag, "List of semicolon-seperated (;) release bundles in the form of 'name=releaseBundleName1, version=version1; name=releaseBundleName2, version=version2' to be included in the new version.", func(f *components.StringFlag) { f.Mandatory = false }),
84+
SourceTypeReleaseBundlesFlag: components.NewStringFlag(SourceTypeReleaseBundlesFlag, "List of semicolon-separated (;) release bundles in the form of 'name=releaseBundleName1, version=version1; name=releaseBundleName2, version=version2' to be included in the new version.", func(f *components.StringFlag) { f.Mandatory = false }),
8585
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 }),
8686
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 }),
8787
DeletePropertyFlag: components.NewStringFlag(DeletePropertyFlag, "Remove a property key and all its values", func(f *components.StringFlag) { f.Mandatory = false }),

apptrust/commands/version/create_app_version_cmd_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ func TestParseBuilds(t *testing.T) {
237237
name: "missing name field",
238238
input: "id=1.0.0",
239239
expectError: true,
240-
errorContains: "missing required field 'name'",
240+
errorContains: "missing required field: name",
241241
},
242242
{
243243
name: "missing id field",
244244
input: "name=build1",
245245
expectError: true,
246-
errorContains: "missing required field 'id'",
246+
errorContains: "missing required field: id",
247247
},
248248
{
249249
name: "invalid format",
@@ -304,13 +304,13 @@ func TestParseReleaseBundles(t *testing.T) {
304304
name: "missing name field",
305305
input: "version=1.0.0",
306306
expectError: true,
307-
errorContains: "missing required field 'name'",
307+
errorContains: "missing required field: name",
308308
},
309309
{
310310
name: "missing version field",
311311
input: "name=rb1",
312312
expectError: true,
313-
errorContains: "missing required field 'version'",
313+
errorContains: "missing required field: version",
314314
},
315315
{
316316
name: "invalid format",
@@ -365,13 +365,13 @@ func TestParseSourceVersions(t *testing.T) {
365365
name: "missing application-key field",
366366
input: "version=1.0.0",
367367
expectError: true,
368-
errorContains: "missing required field 'application-key'",
368+
errorContains: "missing required field: application-key",
369369
},
370370
{
371371
name: "missing version field",
372372
input: "application-key=app1",
373373
expectError: true,
374-
errorContains: "missing required field 'version'",
374+
errorContains: "missing required field: version",
375375
},
376376
{
377377
name: "invalid format",

0 commit comments

Comments
 (0)