bug: `glab auth status` failure does not return failure exit code
Created by: balupton
Description
> glab auth status
gitlab.com
x gitlab.com: api call failed: GET https://gitlab.com/api/v4/user: 401 {message: 401 Unauthorized}
✓ Git operations for gitlab.com configured to use ssh protocol.
✓ API calls for gitlab.com are made over https protocol
✓ REST API Endpoint: https://gitlab.com/api/v4/
✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
x No token provided
> echo "$?"
0
Expected Behavior vs Actual Behavior
Should return a failure exit code, such as 1
Possible Fix
Steps to Reproduce See description.
Logs
Your Environment
- Version used (Run
glab --version):glab version 1.21.1 (2021-09-28) - Operating System and version:
Darwin redacted 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
Edited by Kai Armstrong