relativePathFor static method

String relativePathFor(
  1. List<String> projectPath, {
  2. bool allowExtra = true,
})

Implementation

static String relativePathFor(List<String> projectPath, { bool allowExtra = true}) {
  final temp = <String>[];

  // this is used by the 'new' command, which takes place from one folder below the
  // project folder, which is where most commands are run.
  final extraParent = extraParentFolder;
  if(allowExtra && extraParent != null) {
    temp.addAll(extraParent);
  }
  temp.addAll(projectPath);

  return joinAll(temp);
}