cmd

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v1.4.0

func Add(cfg storage) *cobra.Command

Add returns `add` command

func Current added in v1.4.0

func Current(cfg storage, v vcs) *cobra.Command

Current returns `current` command

func Del added in v1.4.0

func Del(cfg storage) *cobra.Command

Del returns `del` command

func Export added in v1.4.0

func Export(cfg storage) *cobra.Command

Export returns `export` command

func Import added in v1.4.0

func Import(cfg storage) *cobra.Command

Import returns `import` command

func List added in v1.4.0

func List(cfg storage) *cobra.Command

List returns `list` command

func Use added in v1.4.0

func Use(cfg storage, v vcs) *cobra.Command

Use returns `use` command

func Version

func Version(c *Cmd) *cobra.Command

Version returns `version` command

Types

type Cmd added in v1.3.0

type Cmd struct {
	cobra.Command

	// Version is the version number or commit hash
	// These variables should be set by the linker when compiling
	Version string
	// CommitHash is the git hash of last commit
	CommitHash string
	// CompileDate is the date of build
	CompileDate string
	// contains filtered or unexported fields
}

Cmd is an CLI app

func New added in v1.3.0

func New() *Cmd

New returns an app

func (*Cmd) Execute added in v1.4.0

func (c *Cmd) Execute()

Execute initialize the application and run it

Jump to

Keyboard shortcuts

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