Skip to main content

InstallArgs

Struct InstallArgs 

Source
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: Scope

Which settings file to write: project (default), local, or user.

§mode: Mode

The 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: bool

Gate 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: bool

Bake --no-log into the installed hook command, disabling tool-call logging.

§nudge_pipelines: bool

Bake --nudge-pipelines into the installed hook (warn-only nudge against any un-steered shell pipeline).

§measure: bool

Also install a PostToolUse recorder (a * matcher running ct steer post) to measure whether steer guidance was followed.

§pin: bool

Bake 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: bool

Skip the preflight that verifies the resolving ct can parse the hook command; install even if it looks incompatible.

§dry_run: bool

Show the resulting settings file without writing it.

§print: bool

Print just the hook snippet (for manual paste) and exit.

Trait Implementations§

Source§

impl Args for InstallArgs

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Debug for InstallArgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for InstallArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.