Skip to content

Commit

Permalink
Build CLI: Default values for user configurations
Browse files Browse the repository at this point in the history
Use default values when configs don't exist to avoid forcing the users
to specify all options
  • Loading branch information
AmmarAbouZor committed Oct 22, 2024
1 parent dfd559f commit 328aed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/src/user_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ static USER_CONFIGURATION: OnceLock<UserConfiguration> = OnceLock::new();
/// Represents the configuration of this tool on the user level, providing settings like
/// [`UserShell`] and [`UiMode`] besides methods to load this configurations from a file.
pub struct UserConfiguration {
#[serde(default)]
pub shell: UserShell,
#[serde(default)]
pub ui_mode: UiMode,
}

Expand Down

0 comments on commit 328aed4

Please sign in to comment.