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

Method get_status_options

atomic-cli/src/commands/status.rs:355–367  ·  view source on GitHub ↗

Get status options based on command settings.

(&self)

Source from the content-addressed store, hash-verified

353
354 /// Get status options based on command settings.
355 pub(crate) fn get_status_options(&self) -> StatusOptions {
356 let mut options = StatusOptions::default();
357
358 if self.no_untracked {
359 options = options.with_untracked(false);
360 }
361
362 if let Some(ref path) = self.path {
363 options = options.filter_path(PathBuf::from(path));
364 }
365
366 options
367 }
368
369 fn print_snapshot_status(&self, status: &SnapshotStatus) {
370 if let Some(snapshot) = status.snapshot {

Callers 5

statusFunction · 0.80
runMethod · 0.80

Calls 2

with_untrackedMethod · 0.80
filter_pathMethod · 0.45