@@ -158,16 +158,16 @@ dyn_clone::clone_trait_object!(Planner);
158158#[ derive( Debug , Clone , serde:: Serialize , serde:: Deserialize ) ]
159159#[ cfg_attr( feature = "cli" , derive( clap:: Subcommand ) ) ]
160160pub enum BuiltinPlanner {
161- #[ cfg_attr( not( target_os = "linux" ) , clap( hide = true ) ) ]
161+ #[ cfg_attr( all ( feature = "cli" , not( target_os = "linux" ) ) , clap( hide = true ) ) ]
162162 /// A planner for traditional, mutable Linux systems like Debian, RHEL, or Arch
163163 Linux ( linux:: Linux ) ,
164- #[ cfg_attr( not( target_os = "linux" ) , clap( hide = true ) ) ]
164+ #[ cfg_attr( all ( feature = "cli" , not( target_os = "linux" ) ) , clap( hide = true ) ) ]
165165 /// A planner for the Valve Steam Deck running SteamOS
166166 SteamDeck ( steam_deck:: SteamDeck ) ,
167- #[ cfg_attr( not( target_os = "linux" ) , clap( hide = true ) ) ]
167+ #[ cfg_attr( all ( feature = "cli" , not( target_os = "linux" ) ) , clap( hide = true ) ) ]
168168 /// A planner suitable for immutable systems using ostree, such as Fedora Silverblue
169169 Ostree ( ostree:: Ostree ) ,
170- #[ cfg_attr( not( target_os = "macos" ) , clap( hide = true ) ) ]
170+ #[ cfg_attr( all ( feature = "cli" , not( target_os = "macos" ) ) , clap( hide = true ) ) ]
171171 /// A planner for MacOS (Darwin) systems
172172 Macos ( macos:: Macos ) ,
173173}
0 commit comments