Skip to content

Commit

Permalink
quarkus info command
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed Mar 7, 2024
1 parent 0860c78 commit 6fb4211
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion domino/app/src/main/java/io/quarkus/domino/cli/Quarkus.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,34 @@ public class Quarkus implements Callable<Integer> {
protected Set<String> members = Set.of();

@CommandLine.Option(names = {
"--redhat-version-rate" }, description = "Calculate the rate of redhat versions among the dependencies")
"--redhat-version-rate" }, description = "Calculate the rate of redhat versions among the inspected dependencies")
public boolean redhatVersionRate;

@CommandLine.Option(names = {
"--info" }, description = "Log basic Quarkus platform release information")
public boolean info;

protected MessageWriter log = MessageWriter.info();

@Override
public Integer call() throws Exception {

var resolver = getResolver();
var platform = readPlatformInfo(resolver);
if (info) {
log.info("");
log.info("Platform version: " + version);
log.info("");
log.info("Member BOMs:");
for (var m : platform.getMembers()) {
log.info("- " + m.getBom().toCompactCoords());
}
log.info("");
log.info("Maven plugin: " + platform.getMavenPlugin().toCompactCoords());
log.info("");
return 0;
}

var memberReports = new ArrayList<MemberReport>(members.isEmpty() ? platform.getMembers().size() : members.size());
final MemberReport coreReport = new MemberReport(platform.getCore(), isMemberSelected(platform.getCore()));
for (var m : platform.getMembers()) {
Expand Down

0 comments on commit 6fb4211

Please sign in to comment.