The current view name, from the working-copy marker file (a client-side read — the same default every local command uses).
()
| 4661 | /// The current view name, from the working-copy marker file (a client-side |
| 4662 | /// read — the same default every local command uses). |
| 4663 | fn current_view_name() -> CliResult<String> { |
| 4664 | Ok(std::fs::read_to_string( |
| 4665 | crate::commands::find_repository_root()? |
| 4666 | .join(".atomic") |
| 4667 | .join("current_view"), |
| 4668 | ) |
| 4669 | .map(|s| s.trim().to_string()) |
| 4670 | .unwrap_or_else(|_| "dev".to_string())) |
| 4671 | } |
| 4672 | |
| 4673 | // --------------------------------------------------------------------------- |
| 4674 | // preview reads (RepositoryQueryService) |
no test coverage detected