pub struct Cli {Show 20 fields
pub base: PathBuf,
pub name: Option<String>,
pub mode: Option<Mode>,
pub hidden: bool,
pub follow: bool,
pub set: Vec<String>,
pub delete: Vec<String>,
pub add: Vec<String>,
pub move_first: Vec<String>,
pub move_last: Vec<String>,
pub move_up: Vec<String>,
pub move_down: Vec<String>,
pub format: Option<DocFormat>,
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: PathBufRoot to patch; a file patches 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.
mode: Option<Mode>Pin how –name is interpreted (promotion off): literal, glob, or regex.
Include dot-entries (names starting with ‘.’); default skips them.
follow: boolFollow symlinks while traversing.
set: Vec<String>Set PATH to VALUE (repeatable). VALUE is parsed as JSON, or taken as a string if it is not valid JSON. file:PATH reads the value verbatim as a string; text:VALUE escapes the prefix.
delete: Vec<String>Delete the node at PATH (repeatable).
add: Vec<String>Append VALUE to the array at PATH, no index needed (repeatable). VALUE is parsed as JSON or taken as a string; file:PATH reads it verbatim as a string.
move_first: Vec<String>Move the array element selected by PATH to the front of its list (repeatable).
move_last: Vec<String>Move the array element selected by PATH to the end of its list (repeatable).
move_up: Vec<String>Move the array element selected by PATH one position earlier (repeatable).
move_down: Vec<String>Move the array element selected by PATH one position later (repeatable).
format: Option<DocFormat>Force the document format instead of detecting it from the file extension.
expect: Option<String>Verdict expectation over the total number of changes: any|none|N|=N|+N|-N (default: any).
dry_run: boolShow what would change and the verdict, but write nothing.
quiet: boolSuppress the per-file lines; print only the summary.
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.