Skip to content

Commit 8167383

Browse files
committed
fix: exit with code 1 on config command error
- Exit with code 1 when config command is not present and an error occurs Signed-off-by: wecoding <wecoding@yeah.net>
1 parent 4694c75 commit 8167383

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/cli/cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func NewAICommand(in io.Reader, out, errOut io.Writer) *cobra.Command {
5050
// not exit.
5151
if !slices.Contains(os.Args, "config") {
5252
errbook.HandleError(err)
53+
os.Exit(1)
5354
}
5455
}
5556

0 commit comments

Comments
 (0)