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

Function format_relation

atomic-cli/src/commands/op/output.rs:493–499  ·  view source on GitHub ↗
(relation: Option<&OperationRelationDto>)

Source from the content-addressed store, hash-verified

491}
492
493fn format_relation(relation: Option<&OperationRelationDto>) -> String {
494 match relation {
495 Some(OperationRelationDto::Undo { target }) => format!("undo target={target}"),
496 Some(OperationRelationDto::Restore { target }) => format!("restore target={target}"),
497 None => "none".to_string(),
498 }
499}
500
501fn format_scope(scope: &OperationScopeDto) -> String {
502 match scope {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected