Add context.dirs.workspace getter to ProjectDirs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
53f9493364
commit
b27b5f365d
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ class ProjectDirs {
|
||||||
final String _root;
|
final String _root;
|
||||||
const ProjectDirs(this._root);
|
const ProjectDirs(this._root);
|
||||||
|
|
||||||
|
/// The workspace root (where `.project/` lives).
|
||||||
|
String get workspace => _root;
|
||||||
|
|
||||||
/// `.project/` directory.
|
/// `.project/` directory.
|
||||||
String get project => p.join(_root, '.project');
|
String get project => p.join(_root, '.project');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue