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

Function write_effect

atomic-cli/src/commands/op/output.rs:214–222  ·  view source on GitHub ↗
(output: &mut String, indent: usize, effect: &EffectPlanDto)

Source from the content-addressed store, hash-verified

212}
213
214fn write_effect(output: &mut String, indent: usize, effect: &EffectPlanDto) {
215 writeln!(output, "{}- ordinal: {}", spaces(indent), effect.ordinal).unwrap();
216 writeln!(output, "{} target:", spaces(indent)).unwrap();
217 write_effect_target(output, indent + 4, &effect.target);
218 writeln!(output, "{} expected_old:", spaces(indent)).unwrap();
219 write_effect_value(output, indent + 4, &effect.expected_old);
220 writeln!(output, "{} expected_new:", spaces(indent)).unwrap();
221 write_effect_value(output, indent + 4, &effect.expected_new);
222}
223
224fn write_effect_target(output: &mut String, indent: usize, target: &EffectTargetDto) {
225 match target {

Callers 1

render_details_humanFunction · 0.85

Calls 3

write_effect_targetFunction · 0.85
write_effect_valueFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected