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

Function load_document

atomic-cli/src/commands/identity/delegation.rs:616–623  ·  view source on GitHub ↗
(store: &IdentityStore, raw: &str)

Source from the content-addressed store, hash-verified

614}
615
616fn load_document(store: &IdentityStore, raw: &str) -> CliResult<String> {
617 let id = normalize_id(raw)?;
618 store
619 .load_delegation(&id)
620 .map_err(|_| CliError::DelegationError {
621 message: format!("No certificate stored under {raw}"),
622 })
623}
624
625fn read_input(path: &str) -> CliResult<String> {
626 if path == "-" {

Callers 1

executeMethod · 0.85

Calls 2

normalize_idFunction · 0.85
load_delegationMethod · 0.80

Tested by

no test coverage detected