CommandDefinition constructor
const
CommandDefinition({
- required String name,
- required String description,
- List<
String> aliases = const [], - List<
OptionDefinition> options = const [], - Set<
Type> ? requiredNatures, - Set<
Type> worksWithNatures = const {}, - bool supportsProjectTraversal = true,
- bool supportsGitTraversal = false,
- bool requiresGitTraversal = false,
- GitTraversalOrder? defaultGitOrder,
- bool supportsPerCommandFilter = false,
- bool requiresTraversal = true,
- List<
String> examples = const [], - bool canRunStandalone = 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,
});