We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d3402 commit b2d7ce4Copy full SHA for b2d7ce4
src/interface.rs
@@ -180,6 +180,10 @@ pub struct SearchArgs {
180
/// Name of the channel to query (e.g nixos-23.11, nixos-unstable, etc)
181
pub channel: String,
182
183
+ #[arg(long, short = 'P')]
184
+ /// Show supported platforms for each package
185
+ pub platforms: bool,
186
+
187
/// Name of the package to search
188
pub query: Vec<String>,
189
}
src/search.rs
@@ -177,7 +177,7 @@ impl SearchArgs {
177
178
179
- if !elem.package_platforms.is_empty() {
+ if self.platforms && !elem.package_platforms.is_empty() {
println!(" Platforms: {}", elem.package_platforms.join(", "));
0 commit comments