Skip to content

Commit

Permalink
Rename list-all flag to list-unsupported in 1list` command
Browse files Browse the repository at this point in the history
  • Loading branch information
catuhana committed Jul 1, 2024
1 parent 5a16143 commit 91a199f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::types;
use super::NueCommand;

#[derive(Debug, Default, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum VersionInputs {
enum VersionInputs {
VersionString(String),
#[default]
All,
Expand All @@ -24,7 +24,7 @@ pub struct CommandArguments {

/// List all versions no matter if the current system is supported or not.
#[arg(long)]
list_all: bool,
list_unsupported: bool,
}

impl NueCommand for CommandArguments {
Expand Down Expand Up @@ -54,7 +54,7 @@ impl NueCommand for CommandArguments {
VersionInputs::All => releases_json,
};

if !self.list_all {
if !self.list_unsupported {
let current_platform = types::platforms::Platform::get_system_platform().to_string();
releases.retain(|release| release.files.contains(&current_platform));
}
Expand Down

0 comments on commit 91a199f

Please sign in to comment.