Skip to content

Commit

Permalink
Add aliases for replaced commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndarilek committed Jan 12, 2023
1 parent d925055 commit d191692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func newConfigCommand(client *client.Client) *Command {
cmd := BuildCommandKS(nil, nil, configStrings, client, requireSession, requireAppName)

configShowStrings := docstrings.Get("config.show")
BuildCommandKS(cmd, runShowConfig, configShowStrings, client, requireSession, requireAppName)
cmdShow := BuildCommandKS(cmd, runShowConfig, configShowStrings, client, requireSession, requireAppName)
cmdShow.Aliases = []string{"display"}

configSaveStrings := docstrings.Get("config.save")
BuildCommandKS(cmd, runSaveConfig, configSaveStrings, client, requireSession, requireAppName)
Expand Down
2 changes: 2 additions & 0 deletions internal/command/postgres/config_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func newConfigShow() (cmd *cobra.Command) {
command.RequireAppName,
)

cmd.Aliases = []string{"view"}

flag.Add(cmd,
flag.App(),
flag.AppConfig(),
Expand Down

0 comments on commit d191692

Please sign in to comment.