runCommandLine function

Future<int> runCommandLine(
  1. List<String> args, {
  2. Uri? packageConfig,
  3. String? sdkPath,
})

This is the main entrypoint for the command-line tool. args are the command line arguments and there is an optional packageConfig to accommodate users that want to integrate pigeon with other build systems. sdkPath for specifying an optional Dart SDK path.

Implementation

Future<int> runCommandLine(List<String> args,
    {Uri? packageConfig, String? sdkPath}) async {
  return Pigeon.run(args, sdkPath: sdkPath);
}