command

package
v62.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerCommand

type ControllerCommand struct {
	Cfg *viper.Viper
}

ControllerCommand basic setup

func (*ControllerCommand) Help

func (c *ControllerCommand) Help() string

Help returns the help for this command

func (*ControllerCommand) Run

func (c *ControllerCommand) Run(args []string) int

Run actually runs the command

func (*ControllerCommand) Synopsis

func (c *ControllerCommand) Synopsis() string

Synopsis returns a show description

type ShowCommand

type ShowCommand struct {
	Cfg *viper.Viper
}

ShowCommand basic setup

func (*ShowCommand) Help

func (c *ShowCommand) Help() string

Help returns the help for this command

func (*ShowCommand) Run

func (c *ShowCommand) Run(args []string) int

Run actually runs the command

func (*ShowCommand) Synopsis

func (c *ShowCommand) Synopsis() string

Synopsis returns a show description

type TestCommand

type TestCommand struct {
	Test string
}

TestCommand basic setup

func (*TestCommand) Help

func (c *TestCommand) Help() string

Help returns the help for this command

func (*TestCommand) Run

func (c *TestCommand) Run(args []string) int

Run actually runs the command

func (*TestCommand) Synopsis

func (c *TestCommand) Synopsis() string

Synopsis returns a show description

Jump to

Keyboard shortcuts

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