mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
exit 1 when a command does not exist (#4564)
This commit is contained in:
@@ -103,7 +103,10 @@ func Execute() int {
|
||||
|
||||
ctx := createRootContext()
|
||||
|
||||
rootCmd.ExecuteContext(ctx)
|
||||
err := rootCmd.ExecuteContext(ctx)
|
||||
if err != nil {
|
||||
exitCode = 1
|
||||
}
|
||||
return exitCode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user