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

Function current_view_name

atomic-cli/src/commands/rpc.rs:4663–4671  ·  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

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

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