pub struct Cli {Show 14 fields
pub path: PathBuf,
pub range: Option<String>,
pub pattern: Option<String>,
pub mode: Option<Mode>,
pub context: usize,
pub limit: Option<usize>,
pub timeout: Option<f64>,
pub heartbeat: HeartbeatOpts,
pub plain: bool,
pub frontmatter: bool,
pub no_frontmatter: bool,
pub json: bool,
pub json_pretty: bool,
pub explain: Option<Format>,
}Fields§
§path: PathBufFile to view.
range: Option<String>Line range A:B (1-based, inclusive); also A: (to end), :B (from start), or A (one line).
pattern: Option<String>Show only lines matching this pattern (substring->glob->regex promoted), with –context around each. Accepts file:PATH / text:VALUE; a multi-line pattern matches as a line-anchored literal block.
mode: Option<Mode>Pin how the pattern is interpreted (promotion off): literal, glob, or regex.
context: usizeLines of context shown around each –match hit.
limit: Option<usize>Cap the number of lines emitted.
timeout: Option<f64>Abort with exit 2 if the view exceeds SECS seconds (fractional allowed).
heartbeat: HeartbeatOpts§plain: boolSuppress the line-number gutter in text output.
frontmatter: boolOKF: show only the concept’s frontmatter block.
no_frontmatter: boolOKF: omit the concept’s frontmatter block from the shown lines.
json: boolEmit a structured JSON result instead of text.
json_pretty: boolLike --json, but pretty-printed (indented).
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.