Writing Output
When something needs to get written into your console you can always
use JDK’s System.out which then goes directly into JDK’s own streams.
The recommended way is to use PrintWriter obtained from command context
and use it for writing:
@Command
public void example(CommandContext ctx) {
ctx.outputWriter().println("hi");
ctx.outputWriter().flush();
}