pub struct InstallArgs {
pub scope: Scope,
pub mode: Mode,
pub tools: Vec<Tool>,
pub all_tools: bool,
pub log_dir: Option<PathBuf>,
pub no_log: bool,
pub nudge_pipelines: bool,
pub measure: bool,
pub pin: bool,
pub force: bool,
pub dry_run: bool,
pub print: bool,
}Fields§
§scope: ScopeWhich settings file to write: project (default), local, or user.
mode: ModeThe steering action baked into the installed hook command.
tools: Vec<Tool>Harness tools to gate, comma-joined or repeated: Bash (default), Grep, Glob, Read. Grep/Glob steer to ct search, Read to ct view. Ignored when –all-tools is set.
all_tools: boolGate every tool call under a single “*” matcher (superseding –tools) — for full-coverage logging.
log_dir: Option<PathBuf>Bake a --log-dir DIR override into the installed hook command (logging is on by default to .ct/tclog).
no_log: boolBake --no-log into the installed hook command, disabling tool-call logging.
nudge_pipelines: boolBake --nudge-pipelines into the installed hook (warn-only nudge against any un-steered shell pipeline).
measure: boolAlso install a PostToolUse recorder (a * matcher running ct steer post) to measure whether steer guidance was followed.
pin: boolBake the absolute path of THIS ct-steer binary into the hook (instead of resolving ct on PATH), so a version-skewed or missing ct can’t break the hook.
force: boolSkip the preflight that verifies the resolving ct can parse the hook command; install even if it looks incompatible.
dry_run: boolShow the resulting settings file without writing it.
print: boolPrint just the hook snippet (for manual paste) and exit.
Trait Implementations§
Source§impl Args for InstallArgs
impl Args for InstallArgs
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 Debug for InstallArgs
impl Debug for InstallArgs
Source§impl FromArgMatches for InstallArgs
impl FromArgMatches for InstallArgs
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.