run

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelpMessage

type HelpMessage byte
const (
	MsgNone HelpMessage = iota
	MsgFull
	MsgInit
	MsgList
	MsgAdd
	MsgUpdate
	MsgRemove
	MsgFetch
	MsgStatus
	MsgSync
	MsgMigrate
)

func GoCmd

func GoCmd(subcmd string, args []string) (HelpMessage, error)

func Init

func Init(w io.Writer, subCmdArgs []string) (HelpMessage, error)

func List

func List(w io.Writer, subCmdArgs []string) (HelpMessage, error)

func Migrate

func Migrate(w io.Writer, subCmdArgs []string) (HelpMessage, error)

func Modify

func Modify(w io.Writer, subCmdArgs []string, mod context.Modify, ask prompt.Prompt) (HelpMessage, error)

func Run

func Run(w io.Writer, appArgs []string, ask prompt.Prompt) (HelpMessage, error)

Run is isoloated from main and os.Args to help with testing. Shouldn't directly print to console, just write through w.

func Status

func Status(w io.Writer, subCmdArgs []string) (HelpMessage, error)

func Sync

func Sync(w io.Writer, subCmdArgs []string) (HelpMessage, error)

Jump to

Keyboard shortcuts

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