Documentation
¶
Index ¶
- Constants
- func GoPath() string
- func HookScripts() map[string]string
- func InGit() bool
- func LatestVersion(log bool, modules ...string) []lo.Tuple2[string, string]
- func NewProgress() *progressbar.ProgressBar
- func PtyCmdOutput(cmd *exec.Cmd, task string, file bool, formatter consoleFormatter) error
- func Version() string
- func Windows() bool
- type Execution
- type GitHook
- type Plugin
- type Project
- func (project *Project) CacheDir() string
- func (project *Project) Dependencies() []*modfile.Require
- 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 LatestVersion ¶ added in v1.0.16
func NewProgress ¶
func NewProgress() *progressbar.ProgressBar
func PtyCmdOutput ¶ added in v1.0.18
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:"load" mapstructure:"load"`
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.