Skip to content

Commit a7afd90

Browse files
committed
Delete application version command
1 parent 78bdd69 commit a7afd90

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

apptrust/commands/flags.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99

1010
const (
1111
Ping = "ping"
12-
CreateAppVersion = "create-app-version"
13-
PromoteAppVersion = "promote-app-version"
14-
DeleteAppVersion = "delete-app-version"
15-
CreateApp = "create-app"
16-
UpdateApp = "update-app"
17-
DeleteApp = "delete-app"
12+
CreateAppVersion = "version-create"
13+
PromoteAppVersion = "version-promote"
14+
DeleteAppVersion = "version-delete"
15+
CreateApp = "app-create"
16+
UpdateApp = "app-update"
17+
DeleteApp = "app-delete"
1818
)
1919

2020
const (

apptrust/commands/version/create_app_version_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func GetCreateAppVersionCommand(appContext app.Context) components.Command {
143143
Name: commands.CreateAppVersion,
144144
Description: "Create application version",
145145
Category: common.CategoryVersion,
146-
Aliases: []string{"cav"},
146+
Aliases: []string{"vc"},
147147
Arguments: []components.Argument{
148148
{
149149
Name: "version-name",

apptrust/commands/version/delete_app_version_cmd.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ func (dv *deleteAppVersionCommand) prepareAndRunCommand(ctx *components.Context)
5555
}
5656

5757
func GetDeleteAppVersionCommand(appContext app.Context) components.Command {
58-
cmd := &deleteAppVersionCommand{
59-
versionService: appContext.GetVersionService(),
60-
}
61-
// TODO: app version commands are planned to be re-organized
58+
cmd := &deleteAppVersionCommand{versionService: appContext.GetVersionService()}
6259
return components.Command{
6360
Name: commands.DeleteAppVersion,
6461
Description: "Delete application version",
6562
Category: common.CategoryVersion,
66-
Aliases: []string{"dav"},
63+
Aliases: []string{"vd"},
6764
Arguments: []components.Argument{
6865
{
6966
Name: "application-key",

apptrust/commands/version/promote_app_version_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func GetPromoteAppVersionCommand(appContext app.Context) components.Command {
8080
Name: commands.PromoteAppVersion,
8181
Description: "Promote application version",
8282
Category: common.CategoryVersion,
83-
Aliases: []string{"pav"},
83+
Aliases: []string{"vp"},
8484
Arguments: []components.Argument{
8585
{
8686
Name: "version-name",

0 commit comments

Comments
 (0)