getPluginVersion function

String getPluginVersion (
  1. String rootPath
)

Implementation

String getPluginVersion(String rootPath) {
  print('getPluginVersion $rootPath');
  var f = path.canonicalize(rootPath + '/pubspec.yaml');
  var yaml = loadYamlFileSync(f);
  return yaml['version'];
}