Class WXMAbstractCommandWithConfiguration
java.lang.Object
com.io7m.claypot.core.CLPAbstractCommand
com.io7m.waxmill.cmdline.internal.WXMAbstractCommandWithConfiguration
- All Implemented Interfaces:
com.io7m.claypot.core.CLPCommandType
- Direct Known Subclasses:
WXMCommandVMAddAHCIDisk,WXMCommandVMAddAHCIOptical,WXMCommandVMAddE1000NetworkDevice,WXMCommandVMAddFramebufferDevice,WXMCommandVMAddLPC,WXMCommandVMAddPassthru,WXMCommandVMAddVirtioDisk,WXMCommandVMAddVirtioNetworkDevice,WXMCommandVMConsole,WXMCommandVMDefine,WXMCommandVMDelete,WXMCommandVMDeleteBootConfigurations,WXMCommandVMDeleteDevice,WXMCommandVMExport,WXMCommandVMIDOf,WXMCommandVMImport,WXMCommandVMKill,WXMCommandVMList,WXMCommandVMListWithName,WXMCommandVMRealize,WXMCommandVMRun,WXMCommandVMSet,WXMCommandVMUpdateBootConfigurations
public abstract class WXMAbstractCommandWithConfiguration
extends com.io7m.claypot.core.CLPAbstractCommand
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description WXMAbstractCommandWithConfiguration(org.slf4j.Logger inLogger, com.io7m.claypot.core.CLPCommandContextType inContext)Construct a command. -
Method Summary
Modifier and Type Method Description protected voiderror(java.lang.String id, java.lang.Object... arguments)protected com.io7m.claypot.core.CLPCommandType.StatusexecuteActual()protected abstract com.io7m.claypot.core.CLPCommandType.StatusexecuteActualWithConfiguration(java.nio.file.Path configurationPath)protected voidinfo(java.lang.String id, java.lang.Object... arguments)protected WXMMessagesmessages()Methods inherited from class com.io7m.claypot.core.CLPAbstractCommand
commander, configuration, context, execute, logger, strings
-
Constructor Details
-
WXMAbstractCommandWithConfiguration
public WXMAbstractCommandWithConfiguration(org.slf4j.Logger inLogger, com.io7m.claypot.core.CLPCommandContextType inContext)Construct a command.- Parameters:
inLogger- The command loggerinContext- The command context
-
-
Method Details
-
executeActualWithConfiguration
protected abstract com.io7m.claypot.core.CLPCommandType.Status executeActualWithConfiguration(java.nio.file.Path configurationPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
executeActual
protected final com.io7m.claypot.core.CLPCommandType.Status executeActual() throws java.lang.Exception- Specified by:
executeActualin classcom.io7m.claypot.core.CLPAbstractCommand- Throws:
java.lang.Exception
-
messages
-
error
protected final void error(java.lang.String id, java.lang.Object... arguments) -
info
protected final void info(java.lang.String id, java.lang.Object... arguments)
-