fix(auth status): exit with code 1 when auth fails

Description

  • Ensures glab returns exit code 1 when one or more instances fail to authenticate when using glab auth status
  • Better error messages

Related Issues

Resolves #911 (closed)

How has this been tested?

Updated unit tests

Scenario Output
Specific host - success Screenshot_2024-05-03_at_16.44.44
Specific host - failure Screenshot_2024-05-03_at_16.46.20
Specific host not configured Screenshot_2024-05-03_at_16.45.29
Multiple host - success Screenshot_2024-05-03_at_16.54.10
Multiple host - failure Screenshot_2024-05-03_at_16.46.50
No config Screenshot_2024-05-03_at_16.56.55

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Jay McCure

Merge request reports

Loading