Documentation ¶
Index ¶
- Constants
- Variables
- type Dependency
- type Logger
- type Project
- type ProjectImpl
- func (p *ProjectImpl) Bootstrap() error
- func (p *ProjectImpl) Build() error
- func (p *ProjectImpl) Clean() error
- func (p *ProjectImpl) Dependencies() []Dependency
- func (p *ProjectImpl) Dir() string
- func (p *ProjectImpl) Env() []string
- func (p *ProjectImpl) Get(dependency Dependency) error
- func (p *ProjectImpl) GoRun(args ...string) error
- func (p *ProjectImpl) Gopath() []string
- func (p *ProjectImpl) Name() string
- func (p *ProjectImpl) PreBuild() error
- func (p *ProjectImpl) Run(args ...string) error
- func (p *ProjectImpl) Test(cover bool, packages ...string) error
- type Runner
- type Tool
- func (t *Tool) DoBuild(c *cli.Context) error
- func (t *Tool) DoClean(c *cli.Context) error
- func (t *Tool) DoGo(c *cli.Context) error
- func (t *Tool) DoInstall(c *cli.Context) error
- func (t *Tool) DoList(c *cli.Context) error
- func (t *Tool) DoRun(c *cli.Context) error
- func (t *Tool) DoTest(c *cli.Context) error
- func (t *Tool) DoWatch(c *cli.Context) error
- type Watcher
Constants ¶
View Source
const (
GOPASFILE = "gopasfile"
)
Variables ¶
View Source
var PackageFound = errors.New("!!found")
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project interface { Dependencies() []Dependency Clean() error Get(dependency Dependency) error Run(args ...string) error Test(cover bool, packages ...string) error PreBuild() error Build() error Name() string Dir() string GoRun(args ...string) error }
*
- Dependency type
type ProjectImpl ¶
*
- Dependency type
func NewProject ¶
func NewProject(logger *Logger, cwd string) *ProjectImpl
*
- New project options and gopath dir
func (*ProjectImpl) Bootstrap ¶
func (p *ProjectImpl) Bootstrap() error
func (*ProjectImpl) Build ¶
func (p *ProjectImpl) Build() error
func (*ProjectImpl) Clean ¶
func (p *ProjectImpl) Clean() error
func (*ProjectImpl) Dependencies ¶
func (p *ProjectImpl) Dependencies() []Dependency
func (*ProjectImpl) Dir ¶
func (p *ProjectImpl) Dir() string
func (*ProjectImpl) Env ¶
func (p *ProjectImpl) Env() []string
func (*ProjectImpl) Get ¶
func (p *ProjectImpl) Get(dependency Dependency) error
func (*ProjectImpl) GoRun ¶
func (p *ProjectImpl) GoRun(args ...string) error
func (*ProjectImpl) Gopath ¶
func (p *ProjectImpl) Gopath() []string
func (*ProjectImpl) Name ¶
func (p *ProjectImpl) Name() string
func (*ProjectImpl) PreBuild ¶
func (p *ProjectImpl) PreBuild() error
func (*ProjectImpl) Run ¶
func (p *ProjectImpl) Run(args ...string) error
type Runner ¶
type Runner struct { Name string Args []string Env []string Dir string Out io.Writer Err io.Writer // contains filtered or unexported fields }
*
- Runner type
Source Files ¶
Click to show internal directories.
Click to hide internal directories.