command

package
v0.0.0-...-8a944e5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchCommand

type FetchCommand struct {
	Meta
	HelpText string
}

func (*FetchCommand) Help

func (c *FetchCommand) Help() string

func (*FetchCommand) Run

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

func (*FetchCommand) Synopsis

func (c *FetchCommand) Synopsis() string

type FindCommand

type FindCommand struct {
	Meta
	HelpText string
}

func (*FindCommand) Help

func (c *FindCommand) Help() string

func (*FindCommand) Run

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

func (*FindCommand) Synopsis

func (c *FindCommand) Synopsis() string

type ListCommand

type ListCommand struct {
	Meta
	HelpText string
}

func (*ListCommand) Help

func (c *ListCommand) Help() string

func (*ListCommand) Run

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

func (*ListCommand) Synopsis

func (c *ListCommand) Synopsis() string

type Meta

type Meta struct {
	Color bool
}

This is how meta variables are passed to commands

type VersionCommand

type VersionCommand struct {
	Meta

	BuildTime string
	Revision  string
	Version   string
}

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

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

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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