pub struct Cli {Show 17 fields
pub base: PathBuf,
pub name: Option<String>,
pub hidden: bool,
pub follow: bool,
pub find: Option<String>,
pub replace: Option<String>,
pub mode: Option<Mode>,
pub script: Option<PathBuf>,
pub fence: String,
pub no_cascade: bool,
pub expect: Option<String>,
pub dry_run: bool,
pub quiet: bool,
pub json: bool,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub explain: Option<Format>,
}Fields§
§base: PathBufSearch root (relative or absolute); a file edits just that file, a directory is descended.
name: Option<String>Limit to files whose name matches; ‘|’-separated alternatives, each substring->glob->regex promoted and anchored.
Include dot-entries (names starting with ‘.’); default skips them.
follow: boolFollow symlinks while traversing.
find: Option<String>Pattern to find (substring->glob->regex promoted); matched per line. Accepts file:PATH / text:VALUE; a multi-line payload matches as a line-anchored literal block. Required unless –script is given.
replace: Option<String>Replacement text. With a regex –find, $1/${name} expand; otherwise literal. Accepts file:PATH / text:VALUE; for a block –find, an empty payload deletes the matched lines. Required unless –script is given.
mode: Option<Mode>Pin how –find is interpreted (promotion off): literal, glob, or regex.
script: Option<PathBuf>Run a .ctb edit script: a batch of find/replace blocks verified in full before any write (see –explain).
fence: StringFence string opening script directive lines (for payloads that contain the default at line start).
no_cascade: boolScript edits match pristine content instead of cascading; overlapping edits become a usage error.
expect: Option<String>Verdict expectation over the total replacement count: any|none|N|=N|+N|-N (default: any). In scripts, per-edit expect= defaults to =1.
dry_run: boolShow what would change and the verdict, but write nothing.
quiet: boolSuppress the per-site diff; print only the summary line.
json: boolEmit a structured JSON result instead of text.
timeout: Option<f64>Abort with exit 2 if the scan exceeds SECS seconds (fractional allowed). Never interrupts the write phase: once a SUCCESS verdict starts writing, every write completes.
heartbeat: HeartbeatOpts§explain: Option<Format>Print agent usage docs (md or json) and exit.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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.