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

Function print_insert_refresh

atomic-cli/src/commands/rpc.rs:4044–4058  ·  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

4042/// local bodies use (the view/tag bodies finish a spinner; the
4043/// single/multi bodies print success), byte-identical by construction.
4044fn print_insert_refresh(response: &pb::InsertChangesResponse, via_spinner: bool) {
4045 if let (Some(files), Some(directories)) = (response.files_updated, response.directories_created)
4046 {
4047 if via_spinner {
4048 let spinner = crate::output::create_spinner("Materializing files for view...");
4049 crate::output::finish_success(
4050 &spinner,
4051 &format!("{files} files updated, {directories} directories"),
4052 );
4053 } else {
4054 print_success(&format!("{files} files updated, {directories} directories"));
4055 }
4056 super::insert::print_conflict_summary_entries(&insert_conflict_entries(response));
4057 }
4058}
4059
4060/// `atomic insert <ref>` over InsertChanges — the raw reference rides the
4061/// 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