task

package
v0.0.0-...-b3cda28 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(taskSet *TaskSet, args []string)

Types

type BoolFlag

type BoolFlag struct {
	cli.BoolFlag
}

func NewBoolFlag

func NewBoolFlag(name, usage string) BoolFlag

func (BoolFlag) DefType

func (f BoolFlag) DefType(importAsPkg string) string

type Flag

type Flag interface {
	cli.Flag
	DefType(importAsPkg string) string
}

type StringFlag

type StringFlag struct {
	cli.StringFlag
}

func NewStringFlag

func NewStringFlag(name, value, usage string) StringFlag

func (StringFlag) DefType

func (f StringFlag) DefType(importAsPkg string) string

type Task

type Task struct {
	Name        string
	Usage       string
	Description string
	Flags       []Flag
	ActionName  string
	Action      func(*tasking.T)
}

func (*Task) ToCLIFlags

func (t *Task) ToCLIFlags() (flags []cli.Flag)

type TaskSet

type TaskSet struct {
	Name       string
	Dir        string
	PkgObj     string
	ImportPath string
	Tasks      []Task
}

func (*TaskSet) HasTasks

func (ts *TaskSet) HasTasks() bool

Jump to

Keyboard shortcuts

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