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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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