MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / current_view_name

Function current_view_name

atomic-cli/src/commands/rpc.rs:4703–4711  ·  view source on GitHub ↗

The current view name, from the working-copy marker file (a client-side read — the same default every local command uses).

()

Source from the content-addressed store, hash-verified

4701/// The current view name, from the working-copy marker file (a client-side
4702/// read — the same default every local command uses).
4703fn 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)

Callers 3

agent_attestFunction · 0.85
diffFunction · 0.85
splitFunction · 0.85

Calls 1

find_repository_rootFunction · 0.85

Tested by

no test coverage detected