run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
void run() async {
try {
// Validate inputs
if (!_validateInputs()) return;
// Prepare configuration
final config = _prepareConfiguration();
// Execute generation
final success = await _executeGeneration(config);
if (success) {
_reportSuccess();
}
} catch (e) {
StatusHelper.failed(
'Firebase setup failed: ${e.toString()}',
suggestion: 'Check your configuration and try again',
examples: [
'morpheme generate firebase --help',
'dart pub global activate flutterfire_cli',
],
);
}
}