Module: commands::hooks
Contents
StructsHooksArgs- Arguments for thehookscommand.
HooksCommands- Hooks subcommands.
canonical_count- Returns the canonical hook count — used by docs/tests.run- Executes ahookssubcommand.
resq_cli::commands::hooks::HooksArgs
Struct Arguments for thehooks command.
Fields:
command: HooksCommands- Hooks subcommand to execute.
- CommandFactory
fn command<'b>() -> clap::Commandfn command_for_update<'b>() -> clap::Command
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Args
fn group_id() -> Option<clap::Id>fn augment_args<'b>(__clap_app: clap::Command) -> clap::Commandfn augment_args_for_update<'b>(__clap_app: clap::Command) -> clap::Command
- FromArgMatches
fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error>fn from_arg_matches_mut(__clap_arg_matches: & mut clap::ArgMatches) -> ::std::result::Result<Self, clap::Error>fn update_from_arg_matches(self: & mut Self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<(), clap::Error>fn update_from_arg_matches_mut(self: & mut Self, __clap_arg_matches: & mut clap::ArgMatches) -> ::std::result::Result<(), clap::Error>
resq_cli::commands::hooks::HooksCommands
Enum Hooks subcommands. Variants:Install- Install canonical hooks into.git-hooks/and setcore.hooksPath.ScaffoldLocal(crate::commands::dev::ScaffoldLocalHookArgs)- Scaffold a repo-specific.git-hooks/local-<hook>from a kind template.Doctor- Report installed hook status; exit 1 if any drift / missing file detected.Update- Rewrite installed canonical hooks from embedded templates (preserveslocal-*).Status- Print a one-line summary for scripts (e.g.installed=clean local=pre-push).
- Subcommand
fn augment_subcommands<'b>(__clap_app: clap::Command) -> clap::Commandfn augment_subcommands_for_update<'b>(__clap_app: clap::Command) -> clap::Commandfn has_subcommand(__clap_name: &str) -> bool
- FromArgMatches
fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error>fn from_arg_matches_mut(__clap_arg_matches: & mut clap::ArgMatches) -> ::std::result::Result<Self, clap::Error>fn update_from_arg_matches(self: & mut Self, __clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<(), clap::Error>fn update_from_arg_matches_mut<'b>(self: & mut Self, __clap_arg_matches: & mut clap::ArgMatches) -> ::std::result::Result<(), clap::Error>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
resq_cli::commands::hooks::canonical_count
Function Returns the canonical hook count — used by docs/tests.resq_cli::commands::hooks::run
Function Executes ahooks subcommand.
Errors
Returns an error if filesystem access orgit config invocation fails.