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

Function refusal

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

A refusal naming the sandbox and why.

(root: &Path, why: &str)

Source from the content-addressed store, hash-verified

74
75/// A refusal naming the sandbox and why.
76pub fn refusal(root: &Path, why: &str) -> CliError {
77 CliError::ServiceRefusal {
78 message: format!(
79 "not available in a remote sandbox ({}): {why}",
80 root.display()
81 ),
82 }
83}
84
85/// The pointer's repository as the contract names it.
86pub fn reference(pointer: &RemoteSandboxPointer) -> Result<pb::RepositoryRef, String> {

Callers 2

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected