FigGenerateSpecCallback typedef

FigGenerateSpecCallback = Future<FigSpec?> Function(List<String> tokens, ExecuteCommandFunction executeCommand)

Callback to dynamically generate a root spec at runtime. Aligns with Fig generateSpec on Spec. The runtime passes executeCommand built from CompleteAdapter (no dart:io Process). Returns FigSpec or null (e.g. pnpm when generation fails).

Implementation

typedef FigGenerateSpecCallback = Future<FigSpec?> Function(
  List<String> tokens,
  ExecuteCommandFunction executeCommand,
);