generated from PlexSheep/baserepo
feat(cli): make VerbosityLevel serde compatible
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
29beabdc29
commit
235a8bfb85
|
@ -29,6 +29,7 @@ human-panic = "2.0.0"
|
|||
indicatif = "0.17.8"
|
||||
libpt-log = { workspace = true, optional = false }
|
||||
log = { version = "0.4.21", optional = true }
|
||||
serde = { version = "1.0.209", features = ["derive"] }
|
||||
shlex = "1.3.0"
|
||||
strum = { version = "0.26.3", features = ["derive"] }
|
||||
thiserror.workspace = true
|
||||
|
|
|
@ -4,6 +4,7 @@ use clap::Parser;
|
|||
use libpt_log::Level;
|
||||
#[cfg(feature = "log")]
|
||||
use log;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Custom help template for displaying command-line usage information
|
||||
///
|
||||
|
@ -95,7 +96,7 @@ Author: {author-with-newline}
|
|||
/// let level: Level = opts.verbose.level();
|
||||
/// }
|
||||
/// ```
|
||||
#[derive(Parser, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Parser, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
|
||||
pub struct VerbosityLevel {
|
||||
/// make the output more verbose
|
||||
#[arg(
|
||||
|
|
Reference in New Issue