isAgentInProject static method

Future<bool> isAgentInProject(
  1. String agentName,
  2. String basePath
)

Check if specific agent is used in project

Implementation

static Future<bool> isAgentInProject(String agentName, String basePath) async {
  for (final agent in _allAgents) {
    if (agent.name == agentName) {
      return await agent.isInProject(basePath);
    }
  }
  return false;
}