pub struct Cli {Show 22 fields
pub pattern: Option<String>,
pub engine: Option<String>,
pub case_insensitive: bool,
pub multiline: bool,
pub dotall: bool,
pub unicode: Option<bool>,
pub extended: bool,
pub replacement: Option<String>,
pub file: Option<String>,
pub text: Option<String>,
pub load: Option<String>,
pub workspace: Option<String>,
pub print: bool,
pub output_pattern: bool,
pub group: Option<String>,
pub count: bool,
pub json: bool,
pub color: ColorMode,
pub test: Option<Vec<String>>,
pub rounded: bool,
pub vim: bool,
pub completions: Option<Shell>,
}Fields§
§pattern: Option<String>Initial regex pattern
engine: Option<String>Engine to use: rust, fancy, or pcre2
case_insensitive: boolCase-insensitive matching
multiline: boolMulti-line mode
dotall: boolDot matches newline
unicode: Option<bool>Unicode mode
extended: boolExtended mode (ignore whitespace)
replacement: Option<String>Initial replacement string
file: Option<String>Read test string from file
text: Option<String>Test string (alternative to stdin or file)
load: Option<String>Load workspace from file
workspace: Option<String>Use a workspace file for save/load (creates if missing)
print: boolPrint matches to stdout and exit (non-interactive batch mode). Requires a pattern and input (stdin, –file, or –text).
output_pattern: boolAfter interactive session, print the final pattern to stdout instead of matches. Useful for: eval $(rgx -P)
group: Option<String>Print a specific capture group instead of the full match (use with –print). Accepts a group number (1, 2, …) or a named group.
count: boolPrint only the count of matches (use with –print).
json: boolOutput matches as JSON (use with –print).
color: ColorModeColorize match output: auto (default), always, or never (use with –print).
test: Option<Vec<String>>Run test assertions from workspace file(s) and exit. Expects TOML files with [[tests]] sections.
rounded: boolUse rounded border characters for panels.
vim: boolEnable vim-style modal keybindings (Normal/Insert mode).
completions: Option<Shell>Generate shell completions and exit.
Implementations§
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.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more