Skip to content

Commit

Permalink
Merge pull request #30 from keizer619/keizer619-patch-1
Browse files Browse the repository at this point in the history
Include local distributions in remote list
  • Loading branch information
keizer619 authored Jun 19, 2020
2 parents 2c5fdf2 + f288cb6 commit 1321190
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/ballerinalang/command/cmd/ListCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ private static void listDistributions(PrintStream outStream) {
for (Channel channel : channels) {
outStream.println("\n" + channel.getName() + "\n");
for (Distribution distribution : channel.getDistributions()) {
if (!installedVersions.stream().anyMatch(distribution.getVersion()::contains)) {
outStream.println(" [" + distribution.getVersion() + "] " + distribution.getName());
}
outStream.println(" [" + distribution.getVersion() + "] " + distribution.getName());
}
}
} catch (CommandException e) {
Expand Down

0 comments on commit 1321190

Please sign in to comment.