relativePathFor static method
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);
}