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

Function print_insert_refresh

atomic-cli/src/commands/rpc.rs:4010–4024  ·  view source on GitHub ↗

The local materialization report line + inline conflict summary over the wire-carried counts — rendered with the same output functions the local bodies use (the view/tag bodies finish a spinner; the single/multi bodies print success), byte-identical by construction.

(response: &pb::InsertChangesResponse, via_spinner: bool)

Source from the content-addressed store, hash-verified

4008/// local bodies use (the view/tag bodies finish a spinner; the
4009/// single/multi bodies print success), byte-identical by construction.
4010fn print_insert_refresh(response: &pb::InsertChangesResponse, via_spinner: bool) {
4011 if let (Some(files), Some(directories)) = (response.files_updated, response.directories_created)
4012 {
4013 if via_spinner {
4014 let spinner = crate::output::create_spinner("Materializing files for view...");
4015 crate::output::finish_success(
4016 &spinner,
4017 &format!("{files} files updated, {directories} directories"),
4018 );
4019 } else {
4020 print_success(&format!("{files} files updated, {directories} directories"));
4021 }
4022 super::insert::print_conflict_summary_entries(&insert_conflict_entries(response));
4023 }
4024}
4025
4026/// `atomic insert <ref>` over InsertChanges — the raw reference rides the
4027/// single-ref arm (the handler resolves it with the local resolver's

Callers 4

insert_singleFunction · 0.85
insert_from_viewFunction · 0.85
insert_up_to_tagFunction · 0.85
insert_changesFunction · 0.85

Calls 5

create_spinnerFunction · 0.85
finish_successFunction · 0.85
print_successFunction · 0.85
insert_conflict_entriesFunction · 0.85

Tested by

no test coverage detected