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

Function write_key_value

atomic-cli/src/commands/op/output.rs:541–543  ·  view source on GitHub ↗
(output: &mut String, indent: usize, key: &str, value: &str)

Source from the content-addressed store, hash-verified

539}
540
541fn write_key_value(output: &mut String, indent: usize, key: &str, value: &str) {
542 writeln!(output, "{}{key}: {value}", spaces(indent)).unwrap();
543}
544
545fn spaces(count: usize) -> String {
546 " ".repeat(count)

Callers 12

write_metadata_targetFunction · 0.85
write_metadata_valueFunction · 0.85
write_effect_targetFunction · 0.85
write_effect_valueFunction · 0.85
write_receiptFunction · 0.85
write_repo_stateFunction · 0.85
write_working_copy_stateFunction · 0.85
write_git_stateFunction · 0.85
write_git_headFunction · 0.85
write_git_indexFunction · 0.85
write_git_objectFunction · 0.85
write_git_ref_targetFunction · 0.85

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected