errorIfNotProjectRoot method

bool errorIfNotProjectRoot(
  1. AFCommandContext ctx
)

Implementation

bool errorIfNotProjectRoot(AFCommandContext ctx) {
  if(!AFProjectPaths.inRootOfAfibProject(ctx)) {
    ctx.output.writeErrorLine("Please run the $name command from the project root");
    return false;
  }
  return true;
}