axiomhq / cli

The power of Axiom on the command line.
https://axiom.co
MIT License
42 stars 11 forks source link

feat(cmd): improve organization listing #132

Closed lukasmalkmus closed 2 years ago

lukasmalkmus commented 2 years ago

This PR changes (and unifies) how organizations are listed when a user needs to select one (for auth, switching organizations, etc.). Instead of displaying the organizations ID, its display name is listed with the organizations ID alongside it.

codecov[bot] commented 2 years ago

Codecov Report

Merging #132 (3e9e9de) into main (effabbd) will increase coverage by 1.15%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   14.10%   15.25%   +1.15%     
==========================================
  Files          10       10              
  Lines         539      793     +254     
==========================================
+ Hits           76      121      +45     
- Misses        445      654     +209     
  Partials       18       18              
Impacted Files Coverage Δ
pkg/terminal/io.go 0.00% <0.00%> (ø)
internal/cmd/root/help.go 0.00% <0.00%> (ø)
internal/cmd/root/root.go 0.00% <0.00%> (ø)
pkg/terminal/epipe_other.go 0.00% <0.00%> (ø)
internal/cmd/root/help_topic.go 100.00% <0.00%> (ø)
internal/config/config.go 6.14% <0.00%> (+0.87%) :arrow_up:
pkg/terminal/color.go 5.26% <0.00%> (+1.00%) :arrow_up:
cmd/axiom/main.go 19.10% <0.00%> (+1.06%) :arrow_up:
pkg/doc/doc.go 76.19% <0.00%> (+1.19%) :arrow_up:
pkg/terminal/table_printer.go 49.41% <0.00%> (+2.24%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.