Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ dyn_clone::clone_trait_object!(Planner);
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[cfg_attr(feature = "cli", derive(clap::Subcommand))]
pub enum BuiltinPlanner {
#[cfg_attr(not(target_os = "linux"), clap(hide = true))]
#[cfg_attr(all(feature = "cli", not(target_os = "linux")), clap(hide = true))]
/// A planner for traditional, mutable Linux systems like Debian, RHEL, or Arch
Linux(linux::Linux),
#[cfg_attr(not(target_os = "linux"), clap(hide = true))]
#[cfg_attr(all(feature = "cli", not(target_os = "linux")), clap(hide = true))]
/// A planner for the Valve Steam Deck running SteamOS
SteamDeck(steam_deck::SteamDeck),
#[cfg_attr(not(target_os = "linux"), clap(hide = true))]
#[cfg_attr(all(feature = "cli", not(target_os = "linux")), clap(hide = true))]
/// A planner suitable for immutable systems using ostree, such as Fedora Silverblue
Ostree(ostree::Ostree),
#[cfg_attr(not(target_os = "macos"), clap(hide = true))]
#[cfg_attr(all(feature = "cli", not(target_os = "macos")), clap(hide = true))]
/// A planner for MacOS (Darwin) systems
Macos(macos::Macos),
}
Expand Down
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ pub struct CommonSettings {
)]
pub nix_package_url: Option<UrlOrPath>,

#[clap(from_global)]
#[cfg_attr(all(feature = "cli"), clap(from_global))]
pub proxy: Option<Url>,
#[clap(from_global)]
#[cfg_attr(all(feature = "cli"), clap(from_global))]
Comment thread
jacobmichels marked this conversation as resolved.
Outdated
pub ssl_cert_file: Option<PathBuf>,

/// Extra configuration lines for `/etc/nix.conf`
Expand Down