run method

  1. @override
Future<void> run()
override

Runs this command.

The return value is wrapped in a Future if necessary and returned by CommandRunner.runCommand.

Implementation

@override
Future<void> run() async {
  final configPath = argResults?.rest.firstOrNull;

  if (configPath == null || configPath.isEmpty) {
    usageException(
      'Please provide a config file path\n'
      'Example: clean_gen update config/auth.config.json',
    );
  }

  await _updateFromConfig(configPath);
}