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

Function resolve_user_uuid_only

atomic-cli/src/commands/workspace/grant.rs:448–452  ·  view source on GitHub ↗

Test just the UUID-parsing portion of the user branch (no server needed).

(id: &str)

Source from the content-addressed store, hash-verified

446
447 /// Test just the UUID-parsing portion of the user branch (no server needed).
448 fn resolve_user_uuid_only(id: &str) -> CliResult<uuid::Uuid> {
449 uuid::Uuid::parse_str(id).map_err(|_| CliError::InvalidArgument {
450 message: format!("'{}' is not a valid UUID.", id),
451 })
452 }
453
454 /// Extract the error message from resolve_subject's pure branches (those
455 /// that don't touch the network). The team branch needs a client, so we

Calls

no outgoing calls