Skip to content

Commit

Permalink
Update variant to default to Server
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Sep 4, 2024
1 parent 3640a18 commit 9cf9c52
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/commands/generate_iso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct GenerateIsoCommand {
///
/// The Server variant is more useful for
/// images built for a server like UCore.
#[arg(short = 'V', long)]
#[arg(short = 'V', long, default_value = "server")]
variant: GenIsoVariant,

/// The url to the secure boot public key.
Expand Down Expand Up @@ -90,11 +90,12 @@ pub enum GenIsoSubcommand {
},
}

#[derive(Debug, Clone, Copy, ValueEnum)]
#[derive(Debug, Default, Clone, Copy, ValueEnum)]
pub enum GenIsoVariant {
Gnome,
Kinoite,
#[default]
Server,
Silverblue,
Kinoite,
}

impl std::fmt::Display for GenIsoVariant {
Expand All @@ -103,9 +104,9 @@ impl std::fmt::Display for GenIsoVariant {
f,
"{}",
match *self {
Self::Gnome => "Gnome",
Self::Kinoite => "Kinoite",
Self::Server => "Server",
Self::Silverblue => "Silverblue",
Self::Kinoite => "Kinoite",
}
)
}
Expand Down

0 comments on commit 9cf9c52

Please sign in to comment.