pub struct Args {Show 14 fields
pub files: Vec<PathBuf>,
pub patterns: String,
pub regex: bool,
pub case_insensitive: bool,
pub color_map: Option<String>,
pub notify: bool,
pub notify_patterns: Option<String>,
pub notify_throttle: u32,
pub dry_run: bool,
pub quiet: bool,
pub no_color: bool,
pub prefix_file: Option<bool>,
pub poll_interval: u64,
pub buffer_size: usize,
}Fields§
§files: Vec<PathBuf>Path(s) to log file(s) to watch
patterns: StringComma-separated patterns to match
regex: boolTreat patterns as regular expressions
case_insensitive: boolCase-insensitive pattern matching
color_map: Option<String>Custom pattern:color mappings (e.g., “ERROR:red,WARN:yellow”)
notify: boolEnable desktop notifications
notify_patterns: Option<String>Specific patterns that trigger notifications (default: all patterns)
notify_throttle: u32Maximum notifications per second
dry_run: boolPreview mode (no tailing, no notifications)
quiet: boolSuppress non-matching lines
no_color: boolDisable ANSI colors
prefix_file: Option<bool>Prefix lines with filename (auto: true for multiple files)
poll_interval: u64File polling interval in milliseconds
buffer_size: usizeRead buffer size in bytes
Implementations§
Source§impl Args
impl Args
Sourcepub fn notify_patterns(&self) -> Vec<String>
pub fn notify_patterns(&self) -> Vec<String>
Get notification patterns as a vector of strings
Sourcepub fn color_mappings(&self) -> Vec<(String, String)>
pub fn color_mappings(&self) -> Vec<(String, String)>
Get color mappings as a vector of (pattern, color) tuples
Sourcepub fn should_prefix_files(&self) -> bool
pub fn should_prefix_files(&self) -> bool
Determine if filename prefixing should be enabled
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on 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 Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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
Mutably borrows from an owned value. Read more