pub struct CliArgs {Show 21 fields
pub input: Option<String>,
pub script: Option<PathBuf>,
pub output: Option<String>,
pub theme: Option<String>,
pub font_family: Option<String>,
pub font_size: Option<u32>,
pub text_color: Option<String>,
pub background_color: Option<String>,
pub cursor_char: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub padding: Option<u32>,
pub line_spacing: Option<u32>,
pub align: Option<String>,
pub v_align: Option<String>,
pub speed: Option<String>,
pub frame_delay: Option<u32>,
pub fade_duration: Option<u32>,
pub no_escape: bool,
pub list_fonts: bool,
pub list_themes: bool,
}Expand description
Style, layout, theme, and animation configuration.
Defines all command-line options for the termcinema binary.
Fieldsยง
ยงinput: Option<String>Input text (conflicts with โscript)
script: Option<PathBuf>Script file path (conflicts with โinput)
output: Option<String>Output file path (default: stdout)
theme: Option<String>Theme name (see โlist-themes)
font_family: Option<String>Font family name
font_size: Option<u32>Font size in pixels
text_color: Option<String>Text color (e.g. โ#00FF00โ)
background_color: Option<String>Background color (e.g. โ#000000โ)
cursor_char: Option<String>Cursor character (e.g. โ_โ)
width: Option<u32>Padding around content (default: 10)
height: Option<u32>Line spacing in pixels
padding: Option<u32>SVG height in pixels
line_spacing: Option<u32>SVG width in pixels
align: Option<String>Horizontal alignment: left, center, or right
v_align: Option<String>Vertical alignment: top, middle, or bottom
speed: Option<String>Typing speed preset (e.g. โnormalโ)
frame_delay: Option<u32>Frame delay per character (ms)
fade_duration: Option<u32>Fade-in duration per character (ms)
no_escape: boolDisable escape sequences like \n or \t
list_fonts: boolList all built-in fonts
list_themes: boolList all built-in themes
Trait Implementationsยง
Sourceยงimpl Args for CliArgs
impl Args for CliArgs
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 CliArgs
impl CommandFactory for CliArgs
Sourceยงimpl Default for CliArgs
Provide default arguments for SDKs, playgrounds, or programmatic usage.
impl Default for CliArgs
Provide default arguments for SDKs, playgrounds, or programmatic usage.
These defaults are suitable for embedding scenarios where no CLI is involved. They represent a typical middle-ground layout and animation config.
This implementation is used by default_args() and [render_svg_direct()].
Sourceยงimpl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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.