ToolDefinition constructor

const ToolDefinition({
  1. required String name,
  2. required String description,
  3. String version = '1.0.0',
  4. String? versionString,
  5. ToolMode mode = ToolMode.multiCommand,
  6. String? pipelineName,
  7. NavigationFeatures features = const NavigationFeatures(),
  8. List<OptionDefinition> globalOptions = const [],
  9. List<CommandDefinition> commands = const [],
  10. String? defaultCommand,
  11. String? helpFooter,
  12. List<HelpTopic> helpTopics = const [],
  13. Set<Type>? requiredNatures,
  14. Set<Type> worksWithNatures = const {},
  15. String? wiringFile,
  16. List<ToolWiringEntry>? defaultIncludes,
})

Implementation

const ToolDefinition({
  required this.name,
  required this.description,
  this.version = '1.0.0',
  this.versionString,
  this.mode = ToolMode.multiCommand,
  String? pipelineName,
  this.features = const NavigationFeatures(),
  this.globalOptions = const [],
  this.commands = const [],
  this.defaultCommand,
  this.helpFooter,
  this.helpTopics = const [],
  this.requiredNatures,
  this.worksWithNatures = const {},
  this.wiringFile,
  this.defaultIncludes,
}) : pipelineName = pipelineName ?? name;