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

Function current

atomic-cli/src/remote_sandbox.rs:70–73  ·  view source on GitHub ↗

The remote sandbox the current directory is in, if any: its root and pointer.

()

Source from the content-addressed store, hash-verified

68/// The remote sandbox the current directory is in, if any: its root and
69/// pointer.
70pub fn current() -> Option<(PathBuf, RemoteSandboxPointer)> {
71 let cwd = std::env::current_dir().ok()?;
72 atomic_repository::find_remote_sandbox(&cwd)
73}
74
75/// A refusal naming the sandbox and why.
76pub fn refusal(root: &Path, why: &str) -> CliError {

Callers 2

mainFunction · 0.70
sync_credentialsMethod · 0.50

Calls 2

find_remote_sandboxFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected