| 8 | namespace obe::System::Workspace |
| 9 | { |
| 10 | std::string GetWorkspaceLocation(const std::string& workspaceName) |
| 11 | { |
| 12 | if (WorkspaceExists(workspaceName)) |
| 13 | { |
| 14 | return vili::parser::from_file("Workspace/Workspaces.vili") |
| 15 | .at(workspaceName) |
| 16 | .at("path"); |
| 17 | } |
| 18 | throw Exceptions::UnknownWorkspace(workspaceName, ListWorkspaces(), EXC_INFO); |
| 19 | } |
| 20 | |
| 21 | bool WorkspaceExists(const std::string& workspaceName) |
| 22 | { |
no test coverage detected