Documentation
¶
Index ¶
- Variables
- func AddConfigYaml(fs afero.Fs)
- func AddGitHooks(fs afero.Fs)
- func DeleteGitHooks(fs afero.Fs)
- func EnableColors() bool
- func Execute()
- func FilterExclude(vs []string, matcher string) []string
- func FilterGlob(vs []string, matcher string) []string
- func FilterInclude(vs []string, matcher string) []string
- func FilterRelative(vs []string, matcher string) []string
- func InstallCmdExecutor(args []string, fs afero.Fs)
- func RunCmdExecutor(args []string, fs afero.Fs) error
- func VerbosePrint(v ...interface{})
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Verbose bool NoColors bool )
Functions ¶
func AddConfigYaml ¶
AddConfigYaml write lefthook.yml in root project directory
func AddGitHooks ¶
AddGitHooks write existed directories in source_dir as hooks in .git/hooks
func DeleteGitHooks ¶ added in v0.7.3
DeleteGitHooks read the config and remove all git hooks except
func EnableColors ¶ added in v0.7.3
func EnableColors() bool
EnableColors shows is colors supported for current output or not. If `colors` explicitly specified in config, will return this value. Otherwise enabled for TTY and disabled for non-terminal output.
func FilterExclude ¶ added in v0.1.3
func FilterGlob ¶ added in v0.1.4
func FilterInclude ¶ added in v0.1.3
func FilterRelative ¶ added in v0.7.3
func InstallCmdExecutor ¶
InstallCmdExecutor execute basic configuration
func RunCmdExecutor ¶
RunCmdExecutor run executables in hook groups
func VerbosePrint ¶ added in v0.7.3
func VerbosePrint(v ...interface{})
VerbosePrint print text if Verbose flag persist
Types ¶
type Spinner ¶ added in v0.7.3
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶ added in v0.7.3
func NewSpinner() *Spinner
func (*Spinner) RestartWithMsg ¶ added in v0.7.3
func (s *Spinner) RestartWithMsg(msgs ...interface{})
Click to show internal directories.
Click to hide internal directories.