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

Method print_empty_history

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

427 ///
428 /// * `view_name` - Name of the view being queried
429 fn print_empty_history(&self, view_name: &str) {
430 if self.format == LogFormat::Json {
431 println!("[]");
432 } else {
433 println!("No changes recorded on view '{}'.\n", style_view(view_name));
434 print_hint("Record changes with 'atomic record -m \"message\"'");
435 }
436 }
437
438 /// Print a fork-point separator indicating where the draft diverged.
439 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