Class AbstractConvertSubcommand

java.lang.Object
dev.metaschema.cli.processor.command.AbstractTerminalCommand
dev.metaschema.cli.commands.AbstractConvertSubcommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
ConvertContentUsingModuleCommand

public abstract class AbstractConvertSubcommand extends AbstractTerminalCommand
Used by implementing classes to provide a content conversion command.
  • Constructor Details

    • AbstractConvertSubcommand

      public AbstractConvertSubcommand()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ICommand
      Get the name of the command.

      This name is used to call the command as a command line argument.

      Returns:
      the command's name
    • gatherOptions

      public Collection<? extends org.apache.commons.cli.Option> gatherOptions()
      Description copied from interface: ICommand
      Used to gather options directly associated with this command.
      Returns:
      the options
    • getExtraArguments

      public List<ExtraArgument> getExtraArguments()
      Description copied from interface: ICommand
      Get the non-option arguments.
      Returns:
      the arguments, or an empty list if there are no arguments