( tree: Tree, path: string = DEFAULT_WORKSPACE_PATH, )
| 80 | * @returns A {@link WorkspaceDefinition} representing the workspace found at the specified path. |
| 81 | */ |
| 82 | export async function getWorkspace( |
| 83 | tree: Tree, |
| 84 | path: string = DEFAULT_WORKSPACE_PATH, |
| 85 | ): Promise<WorkspaceDefinition> { |
| 86 | const host = new TreeWorkspaceHost(tree); |
| 87 | |
| 88 | const { workspace } = await workspaces.readWorkspace(path, host); |
| 89 | |
| 90 | return workspace; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Writes a workspace file (`angular.json`) to the provided {@link Tree} instance. |
no outgoing calls
no test coverage detected