ToolDefinition constructor
const
ToolDefinition({
- required String name,
- required String description,
- String version = '1.0.0',
- String? versionString,
- ToolMode mode = ToolMode.multiCommand,
- String? pipelineName,
- NavigationFeatures features = const NavigationFeatures(),
- List<
OptionDefinition> globalOptions = const [], - List<
CommandDefinition> commands = const [], - String? defaultCommand,
- List<
HelpTopic> helpTopics = const [], - Set<
Type> ? requiredNatures, - Set<
Type> worksWithNatures = const {}, - String? wiringFile,
- 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;