run method
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 create config/auth.config.json\n'
'Example: clean_gen create config/auth.config.json --output lib/features\n'
'Example: clean_gen create config/auth.config.json --model generate',
);
}
await _createFromConfig(configPath);
}