phases

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRunnable

func MakeRunnable(cmd *cobra.Command)

MakeRunnable makes command phase runnable.

func NewCommand

func NewCommand(out io.Writer, r Runnable) *cobra.Command

NewCommand create new command.

func RunEAllSubcommands

func RunEAllSubcommands(cmd *cobra.Command, args []string) error

RunEAllSubcommands runs all sub-commands for a given phase.

Types

type Runnable

type Runnable interface {
	Use() string
	Short() string
	RegisterFlags(flags *pflag.FlagSet)
	Validate(cmd *cobra.Command) error
	Run(out io.Writer) error
}

Runnable interface for making phased commands.

Jump to

Keyboard shortcuts

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