Skip to content

Commit

Permalink
Fixing exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Apr 29, 2021
1 parent 577139f commit de348f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var Deploy = func(providers app.Providers) cli.Command {
}

if c.NArg() != 2 {
return cli.ShowCommandHelp(c, "deploy")
cli.ShowCommandHelp(c, "deploy")
return fmt.Errorf("invalid usage")
}
appName := c.Args().Get(0)
envName := c.Args().Get(1)
Expand Down
3 changes: 2 additions & 1 deletion cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var Push = func(providers app.Providers) cli.Command {
}

if c.NArg() != 2 {
return cli.ShowCommandHelp(c, "push")
cli.ShowCommandHelp(c, "push")
return fmt.Errorf("invalid usage")
}
appName := c.Args().Get(0)
envName := c.Args().Get(1)
Expand Down
3 changes: 2 additions & 1 deletion nullstone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func main() {
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
} else {
os.Exit(0)
}
os.Exit(0)
}

0 comments on commit de348f2

Please sign in to comment.