Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: MIT Imports: 12 Imported by: 15

Documentation

Index

Constants

View Source
const CheckTimeout = 3 * time.Second

Variables

This section is empty.

Functions

func CheckLatest

func CheckLatest(version string) <-chan *latest.CheckResponse

Types

type CommandFlag

type CommandFlag []skeleton.Command

CommandFlag implements the flag.Value interface and allows multiple calls to the same variable to append a list. It parses string and set them as skeleton.Command.

func (*CommandFlag) Set

func (c *CommandFlag) Set(v string) error

func (*CommandFlag) String

func (c *CommandFlag) String() string

type FlagFlag

type FlagFlag []skeleton.Flag

FlagFlag implements the flag.Value interface and allows multiple calls to the same variable to append a list. It parses string and set them as skeleton.Flag.

func (*FlagFlag) Set

func (f *FlagFlag) Set(v string) error

func (*FlagFlag) String

func (f *FlagFlag) String() string

type ListCommand

type ListCommand struct {
	Meta
}

ListCommand is a Command that generates a new cli project

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 {
	Ui cli.Ui
}

Meta contain the meta-option that nealy all subcommand inherited.

type NewCommand

type NewCommand struct {
	Meta
}

NewCommand is a Command that generates a new cli project

func (*NewCommand) Help

func (c *NewCommand) Help() string

func (*NewCommand) Run

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

func (*NewCommand) Synopsis

func (c *NewCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Meta

	Version  string
	Revision string
}

VersionCommand is a Command that generates a new cli project

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