Skip to content

Commit 10bc350

Browse files
committed
rename
1 parent fadaac5 commit 10bc350

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

apptrust/commands/flags.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import (
88
)
99

1010
const (
11-
Ping = "ping"
12-
VersionCreate = "version-create"
13-
VersionPromote = "version-promote"
14-
VersionDelete = "version-delete"
15-
ReleaseAppVersion = "version-release"
16-
PackageBind = "package-bind"
17-
PackageUnbind = "package-unbind"
18-
AppCreate = "app-create"
19-
AppUpdate = "app-update"
20-
AppDelete = "app-delete"
11+
Ping = "ping"
12+
VersionCreate = "version-create"
13+
VersionPromote = "version-promote"
14+
VersionDelete = "version-delete"
15+
VersionRelease = "version-release"
16+
PackageBind = "package-bind"
17+
PackageUnbind = "package-unbind"
18+
AppCreate = "app-create"
19+
AppUpdate = "app-update"
20+
AppDelete = "app-delete"
2121
)
2222

2323
const (
@@ -109,7 +109,7 @@ var commandFlags = map[string][]string{
109109
ExcludeReposFlag,
110110
IncludeReposFlag,
111111
},
112-
ReleaseAppVersion: {
112+
VersionRelease: {
113113
url,
114114
user,
115115
accessToken,

apptrust/commands/version/release_app_version_cmd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (rv *releaseAppVersionCommand) ServerDetails() (*coreConfig.ServerDetails,
4040
}
4141

4242
func (rv *releaseAppVersionCommand) CommandName() string {
43-
return commands.ReleaseAppVersion
43+
return commands.VersionRelease
4444
}
4545

4646
func (rv *releaseAppVersionCommand) prepareAndRunCommand(ctx *components.Context) error {
@@ -111,7 +111,7 @@ func (rv *releaseAppVersionCommand) buildRequestPayload(ctx *components.Context)
111111
func GetReleaseAppVersionCommand(appContext app.Context) components.Command {
112112
cmd := &releaseAppVersionCommand{versionService: appContext.GetVersionService()}
113113
return components.Command{
114-
Name: commands.ReleaseAppVersion,
114+
Name: commands.VersionRelease,
115115
Description: "Release application version",
116116
Category: common.CategoryVersion,
117117
Aliases: []string{"vr"},
@@ -127,7 +127,7 @@ func GetReleaseAppVersionCommand(appContext app.Context) components.Command {
127127
Optional: false,
128128
},
129129
},
130-
Flags: commands.GetCommandFlags(commands.ReleaseAppVersion),
130+
Flags: commands.GetCommandFlags(commands.VersionRelease),
131131
Action: cmd.prepareAndRunCommand,
132132
}
133133
}

apptrust/commands/version/release_app_version_cmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func TestReleaseAppVersionCommand_CommandName(t *testing.T) {
127127
defer ctrl.Finish()
128128

129129
cmd := &releaseAppVersionCommand{}
130-
assert.Equal(t, commands.ReleaseAppVersion, cmd.CommandName())
130+
assert.Equal(t, commands.VersionRelease, cmd.CommandName())
131131
}
132132

133133
func TestReleaseAppVersionCommand_BuildRequestPayload(t *testing.T) {

0 commit comments

Comments
 (0)