main static method

void main(
  1. List<String> args
)

Implementation

static void main(List<String> args) {
  final time = Stopwatch();
  time.start();
  // ignore: lines_longer_than_80_chars
  final _runner = CommandRunner('easy', 'Generate folder by feature structure.')
    ..addCommand(GenerateCommand());
  _runner.run(args).catchError((err) {
    if (err is! UsageException) {
      throw UsageException(
        'Invalid Usage',
        'Use the -h flag to view instructions on how to use this CLI.',
      );
    }
    exit(64);
  });
  time.stop();
  LogService.info('Time Taken: ${time.elapsed.inMilliseconds} milliseconds');
}