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

Method get_status_options

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

Get status options based on command settings.

(&self)

Source from the content-addressed store, hash-verified

229
230 /// Get status options based on command settings.
231 fn get_status_options(&self) -> StatusOptions {
232 let mut options = StatusOptions::default();
233
234 if self.no_untracked {
235 options = options.with_untracked(false);
236 }
237
238 if let Some(ref path) = self.path {
239 options = options.filter_path(PathBuf::from(path));
240 }
241
242 options
243 }
244
245 /// Print the status in long (human-readable) format.
246 fn print_long_format(&self, status: &RepositoryStatus) -> CliResult<()> {

Callers 4

runMethod · 0.80

Calls 2

with_untrackedMethod · 0.80
filter_pathMethod · 0.45