cli library

The gqlify command line interface as a library, e.g. to build an ahead-of-time compiled executable from your own package:

// tool/gqlify.dart
import 'package:gqlify/cli.dart';

Future<void> main(List<String> args) => runGqlify(args);

dart compile exe tool/gqlify.dart -o build/gqlify, then ./build/gqlify generate.

Functions

runGqlify(List<String> arguments) → Future<void>
Runs the CLI with arguments and sets exitCode.