Skip to content

Commit

Permalink
Merge pull request #210 from superfly/softfixforstatus
Browse files Browse the repository at this point in the history
Fixes status so it behaves interchangably
  • Loading branch information
codepope committed Jul 8, 2020
2 parents c5c5178 + 9baf052 commit 95fc380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,12 @@ func requireAppName(cmd *Command) Initializer {
}

func requireAppNameAsArg(cmd *Command) Initializer {
// TODO: Add Flags to docStrings
cmd.AddStringFlag(StringFlagOpts{
Name: "app",
Shorthand: "a",
Description: "App name to operate on",
EnvName: "FLY_APP",
})

cmd.AddStringFlag(StringFlagOpts{
Name: "config",
Expand Down
2 changes: 1 addition & 1 deletion cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

func newStatusCommand() *Command {
statusStrings := docstrings.Get("status")
cmd := BuildCommand(nil, runStatus, statusStrings.Usage, statusStrings.Short, statusStrings.Long, os.Stdout, requireSession, requireAppName)
cmd := BuildCommand(nil, runStatus, statusStrings.Usage, statusStrings.Short, statusStrings.Long, os.Stdout, requireSession, requireAppNameAsArg)

//TODO: Move flag descriptions to docstrings
cmd.AddBoolFlag(BoolFlagOpts{Name: "all", Description: "Show completed allocations"})
Expand Down

0 comments on commit 95fc380

Please sign in to comment.