Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.2.0-comments-crd Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoot

func NewRoot(deps Dependencies) *appcli.Command

Types

type ConfigStore

type ConfigStore interface {
	Load() (config.Config, error)
	Save(config.Config) error
	Get(string) (string, error)
	Set(string, string) error
}

type CredentialStore

type CredentialStore interface {
	Get(string) (string, error)
	Set(string, string) error
	Delete(string) error
}

type Dependencies

type Dependencies struct {
	Config      ConfigStore
	Credentials CredentialStore
	In          io.Reader
	Out         io.Writer
	Err         io.Writer
	HTTPClient  *http.Client
	Version     string
	Commit      string
	BuildDate   string
}

Jump to

Keyboard shortcuts

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