Print the outcome of a single insert operation.
(
applied: &[Hash],
new_state: atomic_core::types::Merkle,
has_conflicts: bool,
)
| 656 | |
| 657 | /// Print the outcome of a single insert operation. |
| 658 | fn print_insert_outcome( |
| 659 | applied: &[Hash], |
| 660 | new_state: atomic_core::types::Merkle, |
| 661 | has_conflicts: bool, |
| 662 | ) { |
| 663 | println!(); |
| 664 | |
| 665 | if applied.is_empty() { |
| 666 | output::print_warning("No changes inserted."); |
| 667 | return; |
| 668 | } |
| 669 | |
| 670 | output::print_success(&format!("Inserted {} change(s)", applied.len())); |
| 671 | |
| 672 | println!(" New state: {}", new_state.to_base32()); |
| 673 | |
| 674 | if has_conflicts { |
| 675 | println!(); |
| 676 | output::print_warning("Conflicts detected. Run 'atomic status' to see details."); |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | /// Print the outcome of a cross-view insert operation. |
| 681 | fn print_cross_view_outcome(outcome: &CrossViewInsertOutcome, dry_run: bool) { |
no test coverage detected