login

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flow

func Flow(opts *FlowOptions) error

Flow runs the login flow.

func NewCmdLogin

func NewCmdLogin(cli *cli.CLI, runF func(*Options) error) *cobra.Command

NewCmdLogin creates a new `kittycad auth login` command.

Types

type FlowOptions

type FlowOptions struct {
	IO             *iostreams.IOStreams
	Config         iconfig
	KittyCADClient func(string) (*kittycad.Client, error)
	Hostname       string
	Interactive    bool
	Web            bool
	Executable     string
	Context        context.Context
}

FlowOptions are options for the login flow.

type Options

type Options struct {
	IO             *iostreams.IOStreams
	Config         func() (config.Config, error)
	KittyCADClient func(string) (*kittycad.Client, error)
	Context        context.Context

	MainExecutable string

	Interactive bool

	Hostname string
	Token    string
}

Options are the options for `kittycad auth login`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL