Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiagCommand ¶
type DiagCommand struct {
// contains filtered or unexported fields
}
DiagCommand holds data and implementation of the 'diag' sub command
func NewDiagCommand ¶
func NewDiagCommand() *DiagCommand
NewDiagCommand create a new Diag SubCommand
func (*DiagCommand) Diagnostics ¶
func (cmd *DiagCommand) Diagnostics() int
Diagnostics gives useful output about the current configuration
type GitHookInstaller ¶
type GitHookInstaller interface {
// contains filtered or unexported methods
}
GitHookInstaller implements the installation of git-commit-hook into a repository
func NewGitHookInstaller ¶
func NewGitHookInstaller() GitHookInstaller
NewGitHookInstaller creates a new GitHookInstaller
type InstallCommand ¶
type InstallCommand struct {
// contains filtered or unexported fields
}
InstallCommand holds data and implementation of the install sub command
func NewInstallCommand ¶
func NewInstallCommand() *InstallCommand
NewInstallCommand creates a new InstallCommand
func (*InstallCommand) Install ¶
func (cmd *InstallCommand) Install() int
Install subcommand installs the git-commit-hook in configured git repositories
type TestCommand ¶
type TestCommand struct {
// contains filtered or unexported fields
}
TestCommand holds data and implementation of the 'test' sub command
func NewTestCommand ¶
func NewTestCommand() *TestCommand
NewTestCommand creates a new Test sub command
func (*TestCommand) Test ¶
func (cmd *TestCommand) Test() int
Test helps to test configuration against manual input to simulate real commit situations
type UninstallCommand ¶
type UninstallCommand struct {
// contains filtered or unexported fields
}
UninstallCommand holds data and methods for 'uninstall' subcommand
func NewUninstallerCommand ¶
func NewUninstallerCommand() *UninstallCommand
NewUninstallerCommand creates a new uninstall subcommand
func (*UninstallCommand) Uninstall ¶
func (u *UninstallCommand) Uninstall() int
Uninstall subcommand uninstalls the git-commit-hook from configured git repositories