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

Method to_tracking_options

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

Convert to TrackingOptions.

(&self)

Source from the content-addressed store, hash-verified

202
203 /// Convert to TrackingOptions.
204 fn to_tracking_options(&self) -> TrackingOptions {
205 let mut options = TrackingOptions::default()
206 .with_recursive(self.recursive && !self.no_recursive)
207 .with_force(self.force)
208 .with_keep_recorded(self.keep);
209 options.dry_run = self.dry_run;
210 options
211 }
212
213 /// Delete a file from the filesystem.
214 fn delete_file(&self, repo_root: &std::path::Path, path: &str) -> std::io::Result<()> {

Callers 3

runMethod · 0.80

Calls 3

with_keep_recordedMethod · 0.80
with_forceMethod · 0.45
with_recursiveMethod · 0.45