SearchCommand constructor

SearchCommand()

Implementation

SearchCommand() {
  argParser.addFlag('exact', negatable: false, abbr: 'e', help: 'Search for an exact match of the package name.');
  argParser.addFlag('all', negatable: false, abbr: 'a', help: 'List all packages available.');
  argParser.addOption(
    'native',
    abbr: 'n',
    allowed: ['auto', 'only', 'off'],
    defaultsTo: 'auto',
    help: 'Control integration with native package managers.',
  );
  argParser.addOption('limit', abbr: 'l', defaultsTo: '20', help: 'Limit the number of results.');
}