cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfig           = errors.New("Configuration error")
	ErrUsage            = errors.New("Usage is shown")
	ErrParseFailed      = errors.New("Cannot parse flags")
	ErrArgument         = errors.New("Invalid argument")
	ErrCommandFailed    = errors.New("Command execution failed")
	ErrOperationFailed  = errors.New("Operation failed")
	ErrAlreadyInstalled = errors.New("Package is already installed")
	ErrNoPackage        = errors.New("No package is installed")
	ErrCanceled         = errors.New("Operation is canceled")
	ErrWarning          = errors.New("Warning")
)

Functions

This section is empty.

Types

type Cli

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

func NewCli

func NewCli(ver string, cfg *config.Config, g git.Git, out, err io.Writer) Cli

func (*Cli) ParseAndExec

func (c *Cli) ParseAndExec(args []string) error

Jump to

Keyboard shortcuts

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