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

Method print_empty_history

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

423 ///
424 /// * `view_name` - Name of the view being queried
425 fn print_empty_history(&self, view_name: &str) {
426 if self.format == LogFormat::Json {
427 println!("[]");
428 } else {
429 println!("No changes recorded on view '{}'.\n", style_view(view_name));
430 print_hint("Record changes with 'atomic record -m \"message\"'");
431 }
432 }
433
434 /// Print a fork-point separator indicating where the draft diverged.
435 fn print_fork_point(&self, parent_name: &str, inherited_count: u64) {

Callers 1

runMethod · 0.80

Calls 1

print_hintFunction · 0.85

Tested by

no test coverage detected