command

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(args []string)

func Register

func Register(cmd string, runner CmdRunner)

Types

type BuildCmd

type BuildCmd struct {
}

func (*BuildCmd) Run

func (c *BuildCmd) Run(args []string) int

type CleanCmd

type CleanCmd struct {
}

func (*CleanCmd) Run

func (c *CleanCmd) Run(args []string) int

type CmdHandler

type CmdHandler func([]string) CmdRunner

type CmdRunner

type CmdRunner interface {
	Run(args []string) int
}

type CreateCmd

type CreateCmd struct {
}

func (*CreateCmd) Run

func (c *CreateCmd) Run(args []string) int

type InitCmd

type InitCmd struct {
}

func (*InitCmd) Run

func (c *InitCmd) Run(args []string) int

type NodeCmd

type NodeCmd struct {
}

func (*NodeCmd) Run

func (c *NodeCmd) Run() int

type ServeCmd

type ServeCmd struct {
}

func (*ServeCmd) Run

func (c *ServeCmd) Run(args []string) int

Jump to

Keyboard shortcuts

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