CommandCreate constructor

CommandCreate(
  1. String cliTitle,
  2. ConsolePrinter consolePrinter
)

Implementation

CommandCreate(super.cliTitle, super.consolePrinter) {
  argParser.addOption(
    'template',
    abbr: 't',
    help: 'Template to use.',
    valueHelp:
        './template_dir|template.yaml|template.json|template.zip|template.tar.gz',
  );

  argParser.addOption(
    'output',
    abbr: 'o',
    help: 'Output directory/zip/tar.gz.',
  );

  argParser.addMultiOption(
    'property',
    abbr: 'p',
    help: 'Define a template property/variable.',
    valueHelp: 'varName=X',
  );
}