Documentation ¶
Index ¶
- type Executor
- func (executor Executor) DoBuild(outputPath string, goos string, goarch string, verbose bool) int
- func (executor Executor) DoClean() int
- func (executor Executor) DoDebug(args []string) int
- func (executor Executor) DoInit() int
- func (executor Executor) DoInstall(verbose bool) int
- func (executor Executor) DoNew(path string, packageName string, name string, description string) int
- func (executor Executor) DoPackage(verbose bool, concurrency int) int
- func (executor Executor) DoRun(args []string) int
- func (executor Executor) DoTest() int
- func (executor Executor) DoUninstall() int
- type Subcommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
Executor is used to execute the subcommands
func NewExecutor ¶
NewExecutor returns a new Executor instance
The path to the project is changed to the absolute path is it exists
func (Executor) DoNew ¶
func (executor Executor) DoNew(path string, packageName string, name string, description string) int
DoNew initializes a project in an existing directory
func (Executor) DoUninstall ¶
DoUninstall removes the executable from $GOPATH/bin
type Subcommand ¶
type Subcommand interface { Execute(project common.Project, cfg config.Config) error // Execute executes the subcommand with the given project and config RequiresBuild() bool // Return true if a build is required before running the command }
Subcommand defines the interface a subcommand need to implement
Click to show internal directories.
Click to hide internal directories.