Class AbstractCommand
- java.lang.Object
-
- org.wildfly.prospero.cli.commands.AbstractCommand
-
- Direct Known Subclasses:
AbstractInstallCommand,AbstractMavenCommand,AbstractParentCommand,ChannelAddCommand,ChannelCommand,ChannelCommand.ChannelListCommand,ChannelInitializeCommand,ChannelPromoteCommand,ChannelRemoveCommand,CloneCommand,HistoryCommand,RevertCommand.ApplyCommand,UpdateCommand.ApplyCommand
public abstract class AbstractCommand extends Object implements Callable<Integer>
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionFactoryactionFactoryprotected CliConsoleconsole
-
Constructor Summary
Constructors Constructor Description AbstractCommand(CliConsole console, ActionFactory actionFactory)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static PathdetermineInstallationDirectory(Optional<Path> directoryOption)protected static voidverifyTargetDirectoryIsEmpty(Path path)
-
-
-
Field Detail
-
console
protected final CliConsole console
-
actionFactory
protected final ActionFactory actionFactory
-
-
Constructor Detail
-
AbstractCommand
public AbstractCommand(CliConsole console, ActionFactory actionFactory)
-
-
Method Detail
-
determineInstallationDirectory
protected static Path determineInstallationDirectory(Optional<Path> directoryOption) throws ArgumentParsingException
- Throws:
ArgumentParsingException
-
verifyTargetDirectoryIsEmpty
protected static void verifyTargetDirectoryIsEmpty(Path path)
-
-