cli library
Build-time tooling only. Do not import into a Flutter application's UI.
Functions
-
captureGitInfo(
{String? workingDirectory, Duration timeout = const Duration(seconds: 5)}) → Future< Map< String, String> > - Reads the host checkout with a shared time budget for all Git commands.
-
generateGitInfo(
List< String> args) → Future<int> - Refresh the IDE file atomically so readers never see partially written JSON.
-
runFlutter(
List< String> args) → Future<int> - Runs Flutter with build revision metadata, preserving its terminal streams. Non-build commands and help/version requests pass through without Git access.