cmd

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitCmd = &cobra.Command{
	Use:   "init",
	Short: "Initialize a new config",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runInit(cmd.Context())
	},
}
View Source
var InstallCmd = &cobra.Command{
	Use:   "install",
	Short: "Install the git hooks",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runInstall(cmd.Context())
	},
}
View Source
var RootCmd = &cobra.Command{
	Use:   "ghc",
	Short: "ghc is a teeny tiny tool to manage git hooks",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runRoot(cmd.Context())
	},
	Version: fmt.Sprintf(versionFmt, version, commit, date),
}
View Source
var UninstallCmd = &cobra.Command{
	Use:   "uninstall",
	Short: `Uninstall the git hooks`,
	RunE: func(cmd *cobra.Command, args []string) error {
		return runUninstall(cmd.Context())
	},
}
View Source
var ValidateCmd = &cobra.Command{
	Use:   "validate",
	Short: "Validate the configuration",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runValidate(cmd.Context())
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL