executeWithoutTraversal method

Future<ToolResult> executeWithoutTraversal(
  1. CliArgs args
)

Execute command without traversal.

Called for commands that don't require folder traversal (e.g., --help, --version, or commands that operate globally). The default implementation does nothing and succeeds; its result is one hasNoRunWithoutTraversal recognises, so a single-command tool that visits no projects runs execute on the current directory instead.

Implementation

Future<ToolResult> executeWithoutTraversal(CliArgs args) async {
  return _noRunWithoutTraversal;
}