pub struct Args {Show 16 fields
pub files: Vec<PathBuf>,
pub completions: Option<Shell>,
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 exclude: Option<String>,
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
completions: Option<Shell>Generate shell completions for the specified shell
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
exclude: Option<String>Comma-separated patterns to exclude (inverse matching)
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
Sourcepub fn exclude_patterns(&self) -> Vec<String>
pub fn exclude_patterns(&self) -> Vec<String>
Get exclude patterns as a vector of strings
Sourcepub fn generate_completions(shell: Shell)
pub fn generate_completions(shell: Shell)
Generate shell completions for the specified shell and write to stdout
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
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>
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.