cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Main

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

Main func

func RootCmd added in v0.1.4

func RootCmd() *cobra.Command

RootCmd new root cmd

Types

type JOBs added in v0.1.3

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

JOBs type

func NewJOBs added in v0.1.3

func NewJOBs(jds []*config.JD, report *exec.Reporter) *JOBs

NewJOBs new JOBs

func (JOBs) Execute added in v0.1.3

func (jobs JOBs) Execute(ctx context.Context) error

Execute impl executor

func (JOBs) Len added in v0.1.3

func (jobs JOBs) Len() int

Len of JOBs

func (JOBs) Less added in v0.1.3

func (jobs JOBs) Less(i, j int) bool

Less Cmp of JOBs

func (JOBs) Sort added in v0.1.3

func (jobs JOBs) Sort()

Sort of JOBs

func (JOBs) Swap added in v0.1.3

func (jobs JOBs) Swap(i, j int)

Swap of JOBs

Jump to

Keyboard shortcuts

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