Skip to content

Commit 5439bb8

Browse files
Handle background push without installation ID (#1066)
Addressed #1003. Someone got confused enough to write in (and I don't blame them). Seems more user friendly to point out the problem than to silently do nothing.
1 parent e41032e commit 5439bb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/push.go

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ func push(cmd *cobra.Command, args []string) error {
5555
installationID = args[2]
5656
}
5757

58+
if background && len(installationID) == 0 {
59+
return fmt.Errorf("Background push won't do anything unless you also specify an installation ID")
60+
}
61+
5862
if apiToken == "" {
5963
apiToken = os.Getenv(APITokenEnv)
6064
}

0 commit comments

Comments
 (0)