Documentation ¶
Index ¶
- Constants
- func GoPath() string
- func HookScripts() map[string]string
- func InGit() bool
- func NewProgress() *progressbar.ProgressBar
- func StreamCmdOutput(cmd *exec.Cmd, task string) error
- func Version() string
- func Windows() bool
- type Execution
- type GitHook
- type Plugin
- type Project
- func (project *Project) Dependencies() []string
- func (project *Project) Executions() []Execution
- func (project *Project) GitHook() GitHook
- func (project *Project) HookDir() string
- func (project *Project) InstallDependency(dep string) error
- func (project *Project) InstallPlugin(plugin Plugin) error
- func (project *Project) MainFiles() []string
- func (project *Project) Module() string
- func (project *Project) Plugins() []Plugin
- func (project *Project) Root() string
- func (project *Project) SetupHooks(force bool) error
- func (project *Project) Target() string
- func (project *Project) Validate() error
Constants ¶
View Source
const ( //hook script name CommitMsg = "commit-msg" PreCommit = "pre-commit" PrePush = "pre-push" )
Variables ¶
This section is empty.
Functions ¶
func HookScripts ¶
func NewProgress ¶
func NewProgress() *progressbar.ProgressBar
Types ¶
type Plugin ¶
type Plugin struct { Alias string `json:"alias" mapstructure:"alias"` Args string `json:"args" mapstructure:"args"` Url string `json:"url" mapstructure:"url"` //nolint Config string `json:"config" mapstructure:"config"` Description string `json:"description" mapstructure:"description"` // contains filtered or unexported fields }
func (*Plugin) UnmarshalJSON ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) Dependencies ¶ added in v1.0.15
func (*Project) Executions ¶
func (*Project) InstallDependency ¶ added in v1.0.15
func (*Project) InstallPlugin ¶ added in v1.0.15
func (*Project) SetupHooks ¶
SetupHooks setup git local hooks for project. force means always update gob.yaml
Click to show internal directories.
Click to hide internal directories.