config: ArchPackageManager should be snake_case (#784)

* config: ArchPackageManager should be snake_case

* Remove unnecessary strum macro

* Add arch_package_manager to config.example.toml
This commit is contained in:
M*C*O
2021-10-28 18:46:59 +02:00
committed by GitHub
parent 338c9f431d
commit 271b250b51
2 changed files with 3 additions and 0 deletions

View File

@@ -63,6 +63,8 @@
#greedy_cask = true #greedy_cask = true
[linux] [linux]
# Arch Package Manager to use. Allowed values: autodetect, trizen, paru, yay, pacman.
#arch_package_manager = "pacman"
# Arguments to pass yay (or paru) when updating packages # Arguments to pass yay (or paru) when updating packages
#yay_arguments = "--nodevel" #yay_arguments = "--nodevel"
#trizen_arguments = "--devel" #trizen_arguments = "--devel"

View File

@@ -181,6 +181,7 @@ pub struct Brew {
} }
#[derive(Debug, Deserialize, Clone, Copy)] #[derive(Debug, Deserialize, Clone, Copy)]
#[serde(rename_all = "snake_case")]
pub enum ArchPackageManager { pub enum ArchPackageManager {
Autodetect, Autodetect,
Trizen, Trizen,