15 lines
325 B
Rust
15 lines
325 B
Rust
/// CLI configuration.
|
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct Config {
|
|
/// Whether to show hints or not in the CLI.
|
|
#[serde(default)]
|
|
pub hints: bool,
|
|
}
|
|
|
|
impl Default for Config {
|
|
fn default() -> Self {
|
|
Self { hints: true }
|
|
}
|
|
}
|