cli/command_runner
library
Constants
-
knownSubcommands
→ const Set<String>
-
Subcommand names recognized by the runner. Used by
bin/main.dart
to decide whether the bare-invocation default-to-generate shim
should fire.
Functions
-
buildCommandRunner()
→ CommandRunner<int>
-
Builds the top-level
CommandRunner for the
flutter_launcher_icons_flavors CLI.
-
effectiveArgs(List<String> args)
→ List<String>
-
Returns the effective argument list for
args.
-
rejectUnknownArgs(ArgResults results, FLILogger logger)
→ int?
-
Inspects a command's parsed
results for stray positional arguments.
Returns 64 (and logs a clear error) when any are present; returns
null when the rest is empty so the caller can return code ?? null
patternlessly.
-
runCli(List<String> args)
→ Future<int>
-
Single entry point that wraps the
CommandRunner with a top-level
UsageException catch so unknown options / unknown subcommands turn
into a clean exit 64 instead of an uncaught exception with a
stack trace.