Skip to content

Commit

Permalink
Print downgrade warning in yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrkob committed May 21, 2024
1 parent 93885f6 commit b9a02f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void updatesFound(List<ArtifactChange> artifactUpdates) {
final String channelName = artifactUpdate.getChannelName().map(name -> "[" + name + "]")
.orElse("");

printf(" %s%-50s %-20s ==> %-20s %-20s%n", artifactUpdate.isDowngrade()?"[*]":"", artifactName, oldVersion.orElse("[]"),
printf(" %s%-50s %-20s ==> %-20s %-20s%n", artifactUpdate.isDowngrade()?"@|fg(yellow) [*]|@":"", artifactName, oldVersion.orElse("[]"),
newVersion.orElse("[]"), channelName);
}

Expand Down
2 changes: 1 addition & 1 deletion prospero-cli/src/main/resources/UsageMessages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ prospero.install.unknown_stability_level=Unknown stability level [%s]. Valid lev

prospero.updates.no_updates=No updates found.
prospero.updates.header=Updates found:
prospero.updates.downgrade.warning=%n[*] The update list contain one or more artifacts with lower versions then currently installed. Proceed with caution.%n%n
prospero.updates.downgrade.warning=%n@|fg(yellow) [*] The update list contain one or more artifacts with lower versions then currently installed. Proceed with caution.|@%n%n
prospero.updates.prompt=Continue with update [y/N]:
prospero.updates.cancelled=Update cancelled
prospero.updates.complete=Update complete!
Expand Down

0 comments on commit b9a02f7

Please sign in to comment.