run method

Future<void> run(
  1. AFCommandContext ctx
)

Override this to implement the command. The first item in the list is the command name.

Implementation

Future<void> run(AFCommandContext ctx) async {
  // make sure we are in the project root.
  if(!errorIfNotProjectRoot(ctx)) {
    return;
  }

  await execute(ctx);
}