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

Method print_empty_history

atomic-cli/src/commands/log/command.rs:448–455  ·  view source on GitHub ↗

Print empty history message. # Arguments `view_name` - Name of the view being queried

(&self, view_name: &str)

Source from the content-addressed store, hash-verified

446 ///
447 /// * `view_name` - Name of the view being queried
448 fn print_empty_history(&self, view_name: &str) {
449 if self.effective_format() == LogFormat::Json {
450 println!("[]");
451 } else {
452 println!("No changes recorded on view '{}'.\n", style_view(view_name));
453 print_hint("Record changes with 'atomic record -m \"message\"'");
454 }
455 }
456
457 /// Print a fork-point separator indicating where the draft diverged.
458 fn print_fork_point(&self, parent_name: &str, inherited_count: u64) {

Callers 1

runMethod · 0.80

Calls 2

print_hintFunction · 0.85
effective_formatMethod · 0.80

Tested by

no test coverage detected