style: apply format

This commit is contained in:
2025-05-01 21:29:17 +02:00
parent fc9671b884
commit 8048377a6a
2 changed files with 14 additions and 4 deletions

View File

@@ -38,7 +38,11 @@ pub enum Commands {
#[derive(Args, Debug, PartialEq)]
pub struct AddGroupsCommand {
#[arg(short, long, help = "The user to add to the groups, current user by default")]
#[arg(
short,
long,
help = "The user to add to the groups, current user by default"
)]
pub user: Option<String>,
#[arg(short, long, help = "Print the groups without changing anything")]
@@ -68,7 +72,11 @@ pub struct PackageCommand {
#[arg(short, long, help = "Whenever to remove instead of install")]
pub remove: bool,
#[arg(short, long, help = "Print packages of the list without changing anything")]
#[arg(
short,
long,
help = "Print packages of the list without changing anything"
)]
pub print: bool,
#[command(subcommand)]

View File

@@ -84,7 +84,7 @@ fn add_groups(add_user_command: AddGroupsCommand) -> Result<()> {
}
let groups = groups.join(",");
let user = add_user_command.user.unwrap_or_else(|| {
log::info!("No user specified, using current user");
whoami::username()
@@ -213,7 +213,9 @@ fn manage_package(package_command: PackageCommand) -> Result<()> {
PackageSubCommand::CommonList => include_str!("../data/common_list.txt").to_string(),
PackageSubCommand::AmdList => include_str!("../data/amd_list.txt").to_string(),
PackageSubCommand::IntelList => include_str!("../data/intel_list.txt").to_string(),
PackageSubCommand::GnomeExtraList => include_str!("../data/gnome_extra_list.txt").to_string(),
PackageSubCommand::GnomeExtraList => {
include_str!("../data/gnome_extra_list.txt").to_string()
}
PackageSubCommand::FirmwareList => include_str!("../data/firmware_list.txt").to_string(),
PackageSubCommand::CustomList(custom_list_command) => {
log::info!("Using custom list from {}", custom_list_command.file);