-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show scopes in
apis
subcommands instead of count (#174)
* For `apis` subcommands that show scopes use a truncated list, based on terminal width, to show the scopes instead of the count. Use an ellipsis to shdenote the truncation. For the `apis show` subcommand, add an info to note that the full scopes can be viewed using `auth0 apis scopes list <api-id>`. * Use count of scopes for the table view `apis list` uses. * Use a separate struct so JSON output correctly uses an int for the scopes count. * Show the actual app ID in helper text for `apis show` and clarify the list may be truncated. * Update modules * Remove unused function * Move display logic out of cli package. Only show helper text on scope truncation when the scopes are actually truncated. Don't truncate scopes that fit. * Fix truncation. NOTE: this does not handle multi-byte width characters. Co-authored-by: Rita Zerrizuela <[email protected]>
- Loading branch information
1 parent
93321c2
commit b518b64
Showing
2 changed files
with
96 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters