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

Method to_tracking_options

atomic-cli/src/commands/remove.rs:188–194  ·  view source on GitHub ↗

Convert to TrackingOptions.

(&self)

Source from the content-addressed store, hash-verified

186
187 /// Convert to TrackingOptions.
188 fn to_tracking_options(&self) -> TrackingOptions {
189 let mut options = TrackingOptions::default()
190 .with_recursive(self.recursive && !self.no_recursive)
191 .with_force(self.force);
192 options.dry_run = self.dry_run;
193 options
194 }
195
196 /// Delete a file from the filesystem.
197 fn delete_file(&self, repo_root: &std::path::Path, path: &str) -> std::io::Result<()> {

Callers 3

runMethod · 0.80

Calls 2

with_forceMethod · 0.45
with_recursiveMethod · 0.45