command

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitSuccess is returned in case command was correctly executed.
	ExitSuccess = iota

	// ExitError is catchall for general errors.
	ExitError

	// ExitBadArgs is returned in case passed arguments are invalid.
	ExitBadArgs = 128
)

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(code int, err error)

ExitWithError exits application printing error value to stderr.

func NewUserCommand

func NewUserCommand() *cobra.Command

NewUserCommand returns the cobra command for "user".

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand prints out the version of jackal.

Types

type GlobalFlags

type GlobalFlags struct {
	Host string

	DialTimeout    time.Duration
	CommandTimeOut time.Duration
}

GlobalFlags are flags that defined globally and are inherited to all sub-commands.

Jump to

Keyboard shortcuts

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