Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHooksCmd ¶
NewHooksCmd builds the `da hooks` command tree from injected dependencies.
Types ¶
type Deps ¶
type Deps struct {
Flags GlobalFlags
ErrorWithHints func(message string, hints ...string) error
UsageError func(message string, hints ...string) error
MaxArgsWithHints func(n int, hints ...string) cobra.PositionalArgs
ExactArgsWithHints func(n int, hints ...string) cobra.PositionalArgs
// Resolver is the hook-spec resolution seam. Nil in production wiring
// (a real defaultHookSpecResolver is used); tests inject a fake to
// drive the resolve-then-validate error paths in runHooksRemove.
Resolver hookSpecResolver
}
Deps carries UX helpers from commands without an import cycle.
type GlobalFlags ¶
GlobalFlags mirrors the subset of commands.Flags used by hooks subcommands.
Click to show internal directories.
Click to hide internal directories.