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

Method get_status_options

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

Get status options based on command settings.

(&self)

Source from the content-addressed store, hash-verified

241
242 /// Get status options based on command settings.
243 fn get_status_options(&self) -> StatusOptions {
244 let mut options = StatusOptions::default();
245
246 if self.no_untracked {
247 options = options.with_untracked(false);
248 }
249
250 if let Some(ref path) = self.path {
251 options = options.filter_path(PathBuf::from(path));
252 }
253
254 options
255 }
256
257 /// Print the status in long (human-readable) format.
258 fn print_long_format(&self, status: &RepositoryStatus) -> CliResult<()> {

Callers 4

runMethod · 0.80

Calls 2

with_untrackedMethod · 0.80
filter_pathMethod · 0.45