WiringLoader class
Loads and resolves nested tool wiring for a host tool.
Merges code-level defaultIncludes with YAML nested_tools: entries,
then lazily queries only the nested tools needed for the current
invocation via --dump-definitions.
final loader = WiringLoader(tool: buildkitTool);
final result = await loader.resolve(
requestedCommands: {'cleanup', 'buildkittest'},
workspaceRoot: '/path/to/workspace',
);
Constructors
- WiringLoader({required ToolDefinition tool})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tool → ToolDefinition
-
The host tool definition.
final
Methods
-
mergeWiringSources(
{required String workspaceRoot}) → void -
Merge code-level ToolDefinition.defaultIncludes with YAML
nested_tools:entries. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
{Set< String> ? requestedCommands, required String workspaceRoot, bool tolerateMissing = false}) → Future<WiringResult> - Resolve nested tool wiring for the given context.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited