agola cmd: return exit code 1 on bad command
This commit is contained in:
parent
22e8e2080b
commit
540f5888d2
|
@ -16,6 +16,7 @@ package cmd
|
|||
|
||||
import (
|
||||
"net/url"
|
||||
"os"
|
||||
|
||||
"agola.io/agola/cmd"
|
||||
slog "agola.io/agola/internal/log"
|
||||
|
@ -75,5 +76,7 @@ func init() {
|
|||
}
|
||||
|
||||
func Execute() {
|
||||
cmdAgola.Execute()
|
||||
if err := cmdAgola.Execute(); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue