commands

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommands

func GetCommands() []cli.Command

func RegisterCommand

func RegisterCommand(name, usage string, data Command, flags ...cli.Flag)

func RegisterSimpleCommand

func RegisterSimpleCommand(command cli.Command)

func ThrowError

func ThrowError(err error)

Types

type AppError

type AppError struct {
	Error error
}

type CheckCommand

type CheckCommand struct {
	config.OutputSettings

	File string `short:"c" long:"config" description:"Configuration file"`
	// contains filtered or unexported fields
}

func (*CheckCommand) Execute

func (c *CheckCommand) Execute(context *cli.Context)

type Command

type Command interface {
	Execute(c *cli.Context)
}

type ListCommand

type ListCommand struct {
	config.OutputSettings
	// contains filtered or unexported fields
}

func (*ListCommand) Execute

func (l *ListCommand) Execute(context *cli.Context)

Jump to

Keyboard shortcuts

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