cli

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 29 Imported by: 0 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 Register

func Register(host *cli.CLI, signins *SignIns)

Types

type Chooser

type Chooser interface {
	Choice() string
}

Registrant that keeps a profile's choice of provider in a setting, such as the agent's provider of new sessions: the key of the setting, which a logout clears when it names the provider logged out of

type Registrant

type Registrant interface {
	SignIns() []credentials.SignIn
}

Ways a plugin adds to sign the accounts of its kinds in from the command line

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) Choices

func (r *Registry) Choices() []string

Keys of the settings the registrants keep a profile's choice of provider in, in the order they registered

func (*Registry) Register

func (r *Registry) Register(registrant Registrant)

func (*Registry) SignIns

func (r *Registry) SignIns() []credentials.SignIn

type SignIns

type SignIns struct {
	Registry
	// contains filtered or unexported fields
}

Sign-ins plugins register, run by auth add

func New

func New() *SignIns

func (*SignIns) Env

func (s *SignIns) Env(getenv func(profile, name string) string)

Has a sign-in typed in this terminal read the environment this computer keeps of the profile it is of, its .env and secret stores among it, rather than this process's alone

func (*SignIns) Getenv

func (s *SignIns) Getenv(profile, name string) string

Variable of the environment of the profile a sign-in typed in this terminal is of, this process's when nothing set where to read it

Jump to

Keyboard shortcuts

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