CommandDefinition constructor

const CommandDefinition({
  1. required String name,
  2. required String description,
  3. List<String> aliases = const [],
  4. List<OptionDefinition> options = const [],
  5. Set<Type>? requiredNatures,
  6. Set<Type> worksWithNatures = const {},
  7. bool supportsProjectTraversal = true,
  8. bool supportsGitTraversal = false,
  9. bool requiresGitTraversal = false,
  10. GitTraversalOrder? defaultGitOrder,
  11. bool supportsPerCommandFilter = false,
  12. bool requiresTraversal = true,
  13. List<String> examples = const [],
  14. bool canRunStandalone = false,
  15. bool hidden = false,
})

Implementation

const CommandDefinition({
  required this.name,
  required this.description,
  this.aliases = const [],
  this.options = const [],
  this.requiredNatures,
  this.worksWithNatures = const {},
  this.supportsProjectTraversal = true,
  this.supportsGitTraversal = false,
  this.requiresGitTraversal = false,
  this.defaultGitOrder,
  this.supportsPerCommandFilter = false,
  this.requiresTraversal = true,
  this.examples = const [],
  this.canRunStandalone = false,
  this.hidden = false,
});