MCPcopy
hub / github.com/remkop/picocli / ExitCodeGen

Class ExitCodeGen

src/test/java/picocli/ExecuteTest.java:1008–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006 }
1007
1008 @Command(name = "flex")
1009 static class ExitCodeGen implements Callable<Integer>, IExitCodeGenerator {
1010 @Option(names = "-n") boolean negate;
1011 ExitCodeGen() { }
1012 public Integer call() { return negate ? -6 : 6; }
1013 public int getExitCode() { return negate ? -5 : 5; }
1014 }
1015 @Command(subcommands = ExitCodeGen.class)
1016 static class Cmd implements Callable<Integer>, IExitCodeGenerator {
1017 private final int callResult;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…