gg library

Classes

Gg
The parent command for Gg operations.
ProjectDetector
Detects whether the current directory belongs to a gg workspace or a single Dart/TypeScript project.

Enums

ProjectMode
The mode of the project that gg is invoked in.

Constants

sharedTopLevelCommands → const Set<String>
Top-level subcommand names that are shared between gg_multi and gg_one and are dispatched dynamically based on the detected project mode.

Functions

rewriteArgsForProjectMode(List<String> args, ProjectMode detectMode()) List<String>
Rewrites args by inserting one or multi before the first non-flag argument when it is a sharedTopLevelCommands entry. Throws a StateError when the mode is ProjectMode.unknown.