pub struct Cli {Show 19 fields
pub files: Vec<PathBuf>,
pub pattern: String,
pub theme: String,
pub frequency: f64,
pub amplitude: f64,
pub animate: bool,
pub fps: u32,
pub duration: u64,
pub speed: f64,
pub smooth: bool,
pub no_color: bool,
pub list_available: bool,
pub theme_file: Option<PathBuf>,
pub params: Vec<String>,
pub pattern_help: bool,
pub no_aspect_correction: bool,
pub aspect_ratio: f64,
pub buffer_size: Option<usize>,
pub demo: bool,
}Expand description
ChromaCat - A versatile command-line tool for applying animated color gradients to text
Fields§
§files: Vec<PathBuf>§pattern: String§theme: String§frequency: f64§amplitude: f64§animate: bool§fps: u32§duration: u64§speed: f64§smooth: bool§no_color: bool§list_available: bool§theme_file: Option<PathBuf>§params: Vec<String>§pattern_help: bool§no_aspect_correction: bool§aspect_ratio: f64§buffer_size: Option<usize>§demo: boolImplementations§
Source§impl Cli
impl Cli
Sourcepub fn create_pattern_config(&self) -> Result<PatternConfig>
pub fn create_pattern_config(&self) -> Result<PatternConfig>
Creates pattern configuration from CLI arguments
Sourcepub fn create_animation_config(&self) -> AnimationConfig
pub fn create_animation_config(&self) -> AnimationConfig
Creates animation configuration from CLI arguments
Sourcepub fn print_available_options()
pub fn print_available_options()
Prints available themes and patterns
pub fn print_pattern_help()
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
Append to
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>
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 Cli
impl Parser for Cli
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 Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin 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
Mutably borrows from an owned value. Read more