Interface ICommand
- All Known Implementing Classes:
AbstractParentCommand,AbstractTerminalCommand
public interface ICommand
-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<? extends org.apache.commons.cli.Option>default List<ExtraArgument>getName()default ICommandgetSubCommandByName(String name) booleannewExecutor(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) default intdefault voidvalidateOptions(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
-
Method Details
-
getName
-
getDescription
-
getExtraArguments
-
requiredExtraArgumentsCount
default int requiredExtraArgumentsCount() -
gatherOptions
-
getSubCommands
-
isSubCommandRequired
boolean isSubCommandRequired() -
getSubCommandByName
-
validateOptions
default void validateOptions(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine) throws InvalidArgumentException - Throws:
InvalidArgumentException
-
newExecutor
@NonNull ICommandExecutor newExecutor(@NonNull CLIProcessor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine)
-