The current view name, from the working-copy marker file (a client-side read — the same default every local command uses).
()
| 4701 | /// The current view name, from the working-copy marker file (a client-side |
| 4702 | /// read — the same default every local command uses). |
| 4703 | fn current_view_name() -> CliResult<String> { |
| 4704 | Ok(std::fs::read_to_string( |
| 4705 | crate::commands::find_repository_root()? |
| 4706 | .join(".atomic") |
| 4707 | .join("current_view"), |
| 4708 | ) |
| 4709 | .map(|s| s.trim().to_string()) |
| 4710 | .unwrap_or_else(|_| "dev".to_string())) |
| 4711 | } |
| 4712 | |
| 4713 | // --------------------------------------------------------------------------- |
| 4714 | // preview reads (RepositoryQueryService) |
no test coverage detected