Expand description
The interactive half of auth login.
Modelled on glab auth login: one question at a time, with the token entered
as a password so it never reaches the terminal, the scrollback or the shell
history. Everything the wizard collects can also be passed as flags, which is
what CI and scripts use; the wizard fills in only what was not given.
Prompts go to stderr. A wizard that wrote to stdout would corrupt the one machine-readable line the command emits.
Enums§
- Wizard
Error - What the wizard could not resolve on its own.
Functions§
- account
- Account name: which identity this token belongs to.
- introduce
- Print the whole of
auth login --help’s guidance, once, before anything is asked for. - is_
interactive - Is anyone actually there to answer?
- make_
default - Should this profile be the one a bare command uses?
- organisation
- Which organisation, and which flavour it is.
- profile
- Profile name, defaulting to the account name.
- queue
- Default queue, chosen from the ones this token can actually see.
- token
- The token itself, entered as a password.