utils/workspace library
Classes
- WorkspaceInfo
- Information about the workspace context of a directory
Functions
-
clearWorkspaceInfoCache(
) → void - Clears the workspace info cache (useful for testing)
-
getWorkspaceInfo(
Directory directory) → Future< WorkspaceInfo> -
Gets workspace information for the given directory by running
dart pub workspace list --jsonand parsing the output