cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagError added in v0.3.0

func FlagError(name string, value interface{}, reason string) error

Error return new InvalidFlagError.

func GenAction

func GenAction(c *cli.Context) error

GenAction is the action of `aliases gen`.

func GenCommand

func GenCommand() cli.Command

GenCommand returns `aliases gen` command.

`aliases gen` aliases the command defined in aliases.yaml, or export the path of the command.

func HomeAction

func HomeAction(c *cli.Context) error

func HomeCommand

func HomeCommand() cli.Command

func RunAction

func RunAction(c *cli.Context) error

RunAction is the action of `aliases run`.

func RunCommand

func RunCommand() cli.Command

RunCommand returns `aliases run` command.

`aliases run` is a command for run the command defined in aliases.yaml. By specifying the same option as `docker run`, overwrite the command defined in aliases.yaml and run it.

Types

type InvalidFlagError added in v0.3.0

type InvalidFlagError struct {
	// contains filtered or unexported fields
}

InvalidArgumentError is an invalid flag parameter error.

func (*InvalidFlagError) Error added in v0.3.0

func (e *InvalidFlagError) Error() string

Error returns error message.

Jump to

Keyboard shortcuts

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