Skip to content

Commit

Permalink
Merge pull request #193 from ninech/app-aliases
Browse files Browse the repository at this point in the history
fix: add application alias
  • Loading branch information
ctrox authored Dec 2, 2024
2 parents d3acd03 + eb26ff7 commit 54c674c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Cmd struct {
APIServiceAccount apiServiceAccountCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccount" aliases:"asa" help:"Create a new API Service Account."`
Project projectCmd `cmd:"" group:"management.nine.ch" name:"project" help:"Create a new project."`
Config configCmd `cmd:"" group:"deplo.io" name:"config" help:"Create a new deplo.io Project Configuration."`
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app" help:"Create a new deplo.io Application."`
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app,application" help:"Create a new deplo.io Application."`
MySQL mySQLCmd `cmd:"" group:"storage.nine.ch" name:"mysql" help:"Create a new MySQL instance."`
Postgres postgresCmd `cmd:"" group:"storage.nine.ch" name:"postgres" help:"Create a new PostgreSQL instance."`
KeyValueStore keyValueStoreCmd `cmd:"" group:"storage.nine.ch" name:"keyvaluestore" aliases:"kvs" help:"Create a new KeyValueStore instance"`
Expand Down
2 changes: 1 addition & 1 deletion delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Cmd struct {
APIServiceAccount apiServiceAccountCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccount" aliases:"asa" help:"Delete an API Service Account."`
Project projectCmd `cmd:"" group:"management.nine.ch" name:"project" aliases:"proj" help:"Delete a Project."`
Config configCmd `cmd:"" group:"deplo.io" name:"config" help:"Delete a deplo.io Project Configuration."`
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app" help:"Delete a deplo.io Application."`
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app,application" help:"Delete a deplo.io Application."`
MySQL mySQLCmd `cmd:"" group:"storage.nine.ch" name:"mysql" help:"Delete a MySQL instance."`
Postgres postgresCmd `cmd:"" group:"storage.nine.ch" name:"postgres" help:"Delete a PostgreSQL instance."`
KeyValueStore keyValueStoreCmd `cmd:"" group:"storage.nine.ch" name:"keyvaluestore" aliases:"kvs" help:"Delete a KeyValueStore instance."`
Expand Down
2 changes: 1 addition & 1 deletion exec/exec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package exec

type Cmd struct {
Application applicationCmd `cmd:"" group:"deplo.io" aliases:"app" name:"application" help:"Execute a command or shell in a deplo.io application."`
Application applicationCmd `cmd:"" group:"deplo.io" aliases:"app,application" name:"application" help:"Execute a command or shell in a deplo.io application."`
}

type resourceCmd struct {
Expand Down
2 changes: 1 addition & 1 deletion get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Cmd struct {
Clusters clustersCmd `cmd:"" group:"infrastructure.nine.ch" aliases:"cluster,vcluster" help:"Get Kubernetes Clusters."`
APIServiceAccounts apiServiceAccountsCmd `cmd:"" group:"iam.nine.ch" name:"apiserviceaccounts" aliases:"asa" help:"Get API Service Accounts."`
Projects projectCmd `cmd:"" group:"management.nine.ch" name:"projects" aliases:"proj" help:"Get Projects."`
Applications applicationsCmd `cmd:"" group:"deplo.io" name:"applications" aliases:"app,apps" help:"Get deplo.io Applications."`
Applications applicationsCmd `cmd:"" group:"deplo.io" name:"applications" aliases:"app,apps,application" help:"Get deplo.io Applications."`
Builds buildCmd `cmd:"" group:"deplo.io" name:"builds" aliases:"build" help:"Get deplo.io Builds."`
Releases releasesCmd `cmd:"" group:"deplo.io" name:"releases" aliases:"release" help:"Get deplo.io Releases."`
Configs configsCmd `cmd:"" group:"deplo.io" name:"configs" aliases:"config" help:"Get deplo.io Project Configuration."`
Expand Down
2 changes: 1 addition & 1 deletion logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

type Cmd struct {
Applications applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app" help:"Get deplo.io Application logs."`
Applications applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app,application" help:"Get deplo.io Application logs."`
Builds buildCmd `cmd:"" group:"deplo.io" name:"build" help:"Get deplo.io Build logs."`
}

Expand Down
2 changes: 1 addition & 1 deletion update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

type Cmd struct {
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app" help:"Update an existing deplo.io Application."`
Application applicationCmd `cmd:"" group:"deplo.io" name:"application" aliases:"app,application" help:"Update an existing deplo.io Application."`
Config configCmd `cmd:"" group:"deplo.io" name:"config" help:"Update an existing deplo.io Project Configuration."`
Project projectCmd `cmd:"" group:"management.nine.ch" name:"project" help:"Update an existing Project"`
MySQL mySQLCmd `cmd:"" group:"storage.nine.ch" name:"mysql" help:"Update an existing MySQL instance."`
Expand Down

0 comments on commit 54c674c

Please sign in to comment.