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

Method print_empty_history

atomic-cli/src/commands/log/command.rs:446–453  ·  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

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