@Command-annotated classes can implement this interface to specify an exit code that will be returned from the #execute(String...) execute method when the command is successfully invoked. Example usage: @Command class MyCommand implements Runnable, IExitCodeGenerat
| 1194 | * @since 4.0 |
| 1195 | */ |
| 1196 | public interface IExitCodeGenerator { |
| 1197 | /** Returns the exit code that should be returned from the {@link #execute(String...) execute} method. |
| 1198 | * @return the exit code |
| 1199 | */ |
| 1200 | int getExitCode(); |
| 1201 | } |
| 1202 | /** Interface that provides the appropriate exit code that will be returned from the {@link #execute(String...) execute} |
| 1203 | * method for an exception that occurred during parsing or while invoking the command's Runnable, Callable, or Method. |
| 1204 | * <p>Example usage:</p> |
no outgoing calls
no test coverage detected
searching dependent graphs…