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 ICommand
getSubCommandByName
(String name) boolean
newExecutor
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) default int
default void
validateOptions
(CLIProcessor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine)
-
Method Details
-
getName
-
getDescription
-
getExtraArguments
-
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)
-