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

Function write_git_observation

atomic-cli/src/commands/op/output.rs:469–478  ·  view source on GitHub ↗
(output: &mut String, indent: usize, observation: &GitRefObservationDto)

Source from the content-addressed store, hash-verified

467}
468
469fn write_git_observation(output: &mut String, indent: usize, observation: &GitRefObservationDto) {
470 writeln!(output, "{}- name: {}", spaces(indent), observation.name).unwrap();
471 match &observation.target {
472 Some(target) => {
473 writeln!(output, "{} target:", spaces(indent)).unwrap();
474 write_git_ref_target(output, indent + 4, target);
475 }
476 None => writeln!(output, "{} target: none", spaces(indent)).unwrap(),
477 }
478}
479
480fn write_git_ref_target(output: &mut String, indent: usize, target: &GitRefTargetDto) {
481 match target {

Callers 1

render_details_humanFunction · 0.85

Calls 2

write_git_ref_targetFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected