-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added globus auth scope show command #1077
base: main
Are you sure you want to change the base?
Conversation
Why? |
Because the launch of a We can reopen this debate, but let's not do it in this PR thread. |
Auth has confirmed their comfort with (1) this command structure proposal and (2) the decisions made in this PR that diverge our display slightly from their raw api. So this guy is open for business! |
Added
globus auth scope show SCOPE_ID_OR_STRING
globus auth
is a hidden command tree; Stephen and I discussed keeping it that way until we have 5+ commands registered under there.ArrayMultilineFormatter(ArrayFormatter)
- Supports multiline formatted elements, adding a yaml-style-
element start indicator to the beginning of each new one.RecordFormatter
- Prints an object using theRecordPrinter
into a buffered string.LazyDict
- A dict with "key loaders" which will load values for specific keys when accessed the first time, caching the result.terminal_info
with a global singletonTERM_INFO
to centrally track and mutate content width.Changed
[]
instead of nothing.DraftThis PR is in draft until:I have a chance to put the command in front of the auth team.I figure out how to figure out reserved_width in RecordFormatter; it's a pretty minute thing but is hardcoded right now.Auth team has signed off in slack & I figured it out!
Usage
By Scope ID
Standard Output (dependent scope strings get loaded in a secondary batched call)
JSON Output (no secondary dependent scope resolution call happens)
By Scope String
Similarly when accessing by scope string
JSON by scope string uses a the get-scopes route so response is a list of one element