feat: re-add apps and config cli aliases
This better follows Heroku's output and is more useful to users. The subcommands will be treated as the primary, documented versions, while the aliases are there for convenience. Closes #5362
This commit is contained in:
1 parent
1d0d050596
commit
798a413096
4 files changed
+22
-6
No files matched your search
@@ -38,16 +38,16 @@ func main() {
|
||||
cmd := flag.Arg(0)
|
||||
switch cmd {
|
||||
case "config":
|
||||
common.LogWarn("Deprecated: Use the 'config:show' command instead")
|
||||
args := flag.NewFlagSet("config:show", flag.ExitOnError)
|
||||
args := flag.NewFlagSet("config", flag.ExitOnError)
|
||||
args.Usage = usage
|
||||
global := args.Bool("global", false, "--global: use the global environment")
|
||||
shell := args.Bool("shell", false, "--shell: in a single-line for usage in command-line utilities [deprecated]")
|
||||
export := args.Bool("export", false, "--export: print the env as eval-compatible exports [deprecated]")
|
||||
merged := args.Bool("merged", false, "--merged: display the app's environment merged with the global environment")
|
||||
args.Parse(os.Args[2:])
|
||||
appName := args.Arg(0)
|
||||
err := config.CommandShow(appName, *global, *merged, *shell, *export)
|
||||
if err != nil {
|
||||
|
||||
if err := config.CommandShow(appName, *global, *merged, *shell, *export); err != nil {
|
||||
common.LogFailWithError(err)
|
||||
}
|
||||
case "config:help":
|
||||
|
||||
Reference in new issue
Block a user