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

Method print_empty_history

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

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