INNER CODE UNIT · Rust
styles
rustic-rs/rustic · src/commands.rs:164
fn styles() -> Styles {
Styles::styled()
.header(AnsiColor::Red.on_default() | Effects::BOLD)
.usage(AnsiColor::Red.on_default() | Effects::BOLD)
.literal(AnsiColor::Blue.on_default() | Effects::BOLD)
.placeholder(AnsiColor::Green.on_default())
}
fn version() -> &'static str {
option_env!("PROJECT_VERSION").unwrap_or(env!("CARGO_PKG_VERSION"))
}
pub(crate) fn program_version() -> String {
format!("rustic {}", version())
}
/// Entry point for the application. It needs to be a struct to allow using subcommands!
#[derive(clap::Parser, Command, Debug)]