pub struct HooksArgs {
pub docs_root: Option<String>,
pub entry: String,
pub indent: String,
pub target: String,
pub apply: bool,
pub check: bool,
}Expand description
Render the delivered gate set as the managed pre-commit block.
Fields§
§docs_root: Option<String>What replaces {docs_root} in wiring patterns.
Omitted, the target’s recorded documentation root is used where the
target is an instance, and _docs otherwise. A block rendered
against the wrong root would disagree with the one the installer
wrote.
entry: StringThe command prefix every entry invokes.
indent: StringThe sequence-item indentation of the consumer’s repos entries.
target: StringThe instance whose declaration the block is rendered from.
apply: boolWrite the rendered block into the target’s .pre-commit-config.yaml,
replacing the managed region.
Run this after editing the declaration. It works at the same version,
which sdd upgrade does not.
check: boolExit non-zero when the target’s managed region does not match what the declaration renders.
Trait Implementations§
Source§impl Args for HooksArgs
impl Args for HooksArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for HooksArgs
impl FromArgMatches for HooksArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.