FixCommand constructor

FixCommand()

Creates a new instance of FixCommand.

Configures the command-line argument parser to accept:

  • --apps-name, -a: Specific app to fix
  • --feature-name, -f: Specific feature to fix
  • --page-name, -p: Specific page to fix

Implementation

FixCommand() {
  argParser.addOption(
    'apps-name',
    abbr: 'a',
    help: 'Apply dart fix to specific app',
  );
  argParser.addOption(
    'feature-name',
    abbr: 'f',
    help: 'Apply dart fix to specific feature',
  );
  argParser.addOption(
    'page-name',
    abbr: 'p',
    help: 'Apply dart fix to specific page',
  );
  argParser.addFlag(
    'dry-run',
    help: 'Show what fixes would be applied without making changes',
    defaultsTo: false,
  );
}