getOptionMorphemeYaml method

String getOptionMorphemeYaml()

Implementation

String getOptionMorphemeYaml() {
  final path = join(current, 'pubspec.yaml');
  if (exists(path)) {
    final pathMorphemeCli = YamlHelper.loadFileYaml(path)['morpheme_cli'];
    if (pathMorphemeCli != null) {
      return pathMorphemeCli;
    }
  }
  return this?['morpheme-yaml'] ?? join(current, 'morpheme.yaml');
}