common

package
v0.0.0-...-0beb9b2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error, cmd ...*cobra.Command)

Types

type MissingArgumentsError

type MissingArgumentsError struct {
	Command string
}

MissingArgumentsError is an error returned if there are too few arguments for a command.

func NewMissingArgumentsError

func NewMissingArgumentsError(command *cobra.Command) *MissingArgumentsError

NewMissingArgumentsError creates a MissingArgumentsError instance.

func (*MissingArgumentsError) Error

func (e *MissingArgumentsError) Error() string

Jump to

Keyboard shortcuts

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