run method

  1. @override
void run(
  1. List<String> args,
  2. Map<String, dynamic> flags
)

Run defines what code should be ran when this command is executed.

Implementation

@override
void run(List<String> args, Map<String, dynamic> flags) {
  if (args.isEmpty) {
    LogService.error("You must provide a provider name.");
    return;
  }
  _makeNewProvider(featureName: args.first);
}