We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
oma list
1 parent 527ad94 commit 12ac865Copy full SHA for 12ac865
src/subcommand/list.rs
@@ -215,12 +215,9 @@ impl CliExecuter for List {
215
"{}/{} {} {arch} {s}",
216
color_formatter().color_str(&name, Action::Emphasis).bold(),
217
color_formatter().color_str(branches_str, Action::Secondary),
218
- if upgradable {
219
- version_str = Cow::Owned(format!(
220
- "{} -> {}",
221
- version_str,
222
- new_version.as_ref().unwrap(),
223
- ));
+ if let Some(new_version) = new_version {
+ version_str =
+ Cow::Owned(format!("{} -> {}", version_str, new_version));
224
color_formatter().color_str(version_str, Action::WARN)
225
} else {
226
color_formatter().color_str(version_str, Action::EmphasisSecondary)
0 commit comments