java.lang.Object
dev.metaschema.cli.processor.command.AbstractTerminalCommand
dev.metaschema.cli.commands.GenerateDiagramCommand
- All Implemented Interfaces:
dev.metaschema.cli.processor.command.ICommand
public class GenerateDiagramCommand
extends dev.metaschema.cli.processor.command.AbstractTerminalCommand
This command implementation supports generation of a diagram depicting the
objects and relationships within a provided Metaschema module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteCommand(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) Execute the diagram generation command.Collection<? extends org.apache.commons.cli.Option>List<dev.metaschema.cli.processor.command.ExtraArgument>getName()dev.metaschema.cli.processor.command.ICommandExecutornewExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) Methods inherited from class dev.metaschema.cli.processor.command.AbstractTerminalCommand
getCurrentWorkingDirectory, resolveAgainstCWD, resolveAgainstCWD, resolveAgainstCWDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.cli.processor.command.ICommand
getSubCommandByName, getSubCommands, isSubCommandRequired, validateExtraArguments, validateOptions
-
Constructor Details
-
GenerateDiagramCommand
public GenerateDiagramCommand()
-
-
Method Details
-
getName
-
getDescription
-
gatherOptions
-
getExtraArguments
-
newExecutor
public dev.metaschema.cli.processor.command.ICommandExecutor newExecutor(dev.metaschema.cli.processor.CallingContext callingContext, org.apache.commons.cli.CommandLine cmdLine) -
executeCommand
protected void executeCommand(@NonNull dev.metaschema.cli.processor.CallingContext callingContext, @NonNull org.apache.commons.cli.CommandLine cmdLine) throws dev.metaschema.cli.processor.command.CommandExecutionException Execute the diagram generation command.- Parameters:
callingContext- information about the calling contextcmdLine- the parsed command line details- Throws:
dev.metaschema.cli.processor.command.CommandExecutionException- if an error occurred while executing the command
-