Documentation ¶
Index ¶
- Variables
- func Sanitize(workspace string) (string, error)
- 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(w io.Writer, workspace string) (email string, passwd string, err error)
- func (*Huh) RequestLoginType(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") )
Functions ¶
Types ¶
type CLI ¶
type CLI struct{}
CLI is the archaic fallback UI for auth.
func (*CLI) ConfirmationCode ¶ added in v2.5.2
func (*CLI) RequestCreds ¶ added in v2.5.15
func (*CLI) RequestLoginType ¶ added in v2.5.0
type Huh ¶ added in v2.5.0
type Huh struct{}
Huh is the Auth UI that uses the huh library to provide a terminal UI.
func (*Huh) ConfirmationCode ¶ added in v2.5.2
ConfirmationCode asks the user to input the confirmation code, does some validation on it and returns it as an int.
func (*Huh) RequestCreds ¶ added in v2.5.1
func (*Huh) RequestLoginType ¶ added in v2.5.0
func (*Huh) RequestWorkspace ¶ added in v2.5.0
Click to show internal directories.
Click to hide internal directories.