Skip to content

Commit

Permalink
Rename fly config display to fly config show.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndarilek committed Jan 12, 2023
1 parent b763012 commit 320a480
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func newConfigCommand(client *client.Client) *Command {

cmd := BuildCommandKS(nil, nil, configStrings, client, requireSession, requireAppName)

configDisplayStrings := docstrings.Get("config.display")
BuildCommandKS(cmd, runDisplayConfig, configDisplayStrings, client, requireSession, requireAppName)
configShowStrings := docstrings.Get("config.show")
BuildCommandKS(cmd, runShowConfig, configShowStrings, client, requireSession, requireAppName)

configSaveStrings := docstrings.Get("config.save")
BuildCommandKS(cmd, runSaveConfig, configSaveStrings, client, requireSession, requireAppName)
Expand All @@ -36,7 +36,7 @@ func newConfigCommand(client *client.Client) *Command {
return cmd
}

func runDisplayConfig(cmdCtx *cmdctx.CmdContext) error {
func runShowConfig(cmdCtx *cmdctx.CmdContext) error {
ctx := cmdCtx.Command.Context()

cfg, err := cmdCtx.Client.API().GetConfig(ctx, cmdCtx.AppName)
Expand Down
6 changes: 3 additions & 3 deletions docstrings/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ Takes hostname as a parameter to locate the certificate.`,
return KeyStrings{"config", "Manage an app's configuration",
`The CONFIG commands allow you to work with an application's configuration.`,
}
case "config.display":
return KeyStrings{"display", "Display an app's configuration",
`Display an application's configuration. The configuration is presented
case "config.show":
return KeyStrings{"show", "Show an app's configuration",
`Show an application's configuration. The configuration is presented
in JSON format. The configuration data is retrieved from the Fly service.`,
}
case "config.env":
Expand Down

0 comments on commit 320a480

Please sign in to comment.