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

Method open

atomic-cli/src/service/mod.rs:125–130  ·  view source on GitHub ↗

Open the service session for the ambient repository. Returns `None` outside a repository — the caller falls through to its own (proper) not-a-repository error path.

()

Source from the content-addressed store, hash-verified

123 /// `None` outside a repository — the caller falls through to its own
124 /// (proper) not-a-repository error path.
125 pub fn open() -> CliResult<Option<Service>> {
126 let Ok(root) = crate::commands::find_repository_root() else {
127 return Ok(None);
128 };
129 Self::open_root(&root)
130 }
131
132 /// Open a session for administering the repository at the ambient
133 /// path — `atomic sandbox open/renew/close`. Refused inside a remote

Calls 1

find_repository_rootFunction · 0.85