diff --git a/cmd/fetch.go b/cmd/fetch.go index 1c35a73..0b105a7 100644 --- a/cmd/fetch.go +++ b/cmd/fetch.go @@ -27,6 +27,7 @@ var fetchCmd = &cobra.Command{ // check if we actually have any targets to run if len(targets) <= 0 { log.Error().Msg("must specify a target") + os.Exit(1) } // check to see if an access token is available from env diff --git a/cmd/serve.go b/cmd/serve.go index 8123936..48e3629 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -37,6 +37,7 @@ var serveCmd = &cobra.Command{ b, err := json.MarshalIndent(conf, "", "\t") if err != nil { log.Error().Err(err).Msg("failed to marshal config") + os.Exit(1) } fmt.Printf("%v\n", string(b)) }