Documentation ¶
Index ¶
- Variables
- type CLI
- func (*CLI) ConfirmationCode(email string) (code int, err error)
- func (*CLI) RequestCreds(w io.Writer, workspace string) (email string, passwd string, err error)
- func (cl *CLI) RequestLoginType(w io.Writer) (LoginType, error)
- func (cl *CLI) RequestWorkspace(w io.Writer) (string, error)
- func (*CLI) Stop()
- type Huh
- func (*Huh) ConfirmationCode(email string) (int, error)
- func (*Huh) RequestCreds(ctx context.Context, w io.Writer, workspace string) (email string, passwd string, err error)
- func (*Huh) RequestLoginType(ctx context.Context, w io.Writer, workspace string) (LoginOpts, error)
- func (h *Huh) RequestWorkspace(w io.Writer) (string, error)
- func (*Huh) Stop()
- type LoginOpts
- type LoginType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotURLSafe = errors.New("not a valid url safe string") ErrRequired = errors.New("can not be empty") )
View Source
var Theme = huh.ThemeBase16()
Functions ¶
This section is empty.
Types ¶
type Huh ¶
type Huh struct{}
Huh is the Auth UI that uses the huh library to provide a terminal UI.
func (*Huh) ConfirmationCode ¶
ConfirmationCode asks the user to input the confirmation code, does some validation on it and returns it as an int.
func (*Huh) RequestCreds ¶
func (*Huh) RequestLoginType ¶
Click to show internal directories.
Click to hide internal directories.