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

Method with_files

atomic-cli/src/commands/diff/command.rs:103–110  ·  view source on GitHub ↗

Builder: set files to diff.

(mut self, files: I)

Source from the content-addressed store, hash-verified

101
102 /// Builder: set files to diff.
103 pub fn with_files<I, S>(mut self, files: I) -> Self
104 where
105 I: IntoIterator<Item = S>,
106 S: Into<String>,
107 {
108 self.files = files.into_iter().map(|s| s.into()).collect();
109 self
110 }
111
112 /// Builder: set the change to compare against.
113 pub fn with_change(mut self, change: impl Into<String>) -> Self {

Callers 5

test_diff_with_filesFunction · 0.45
test_diff_builder_chainFunction · 0.45

Calls 1

into_iterMethod · 0.45

Tested by 5

test_diff_with_filesFunction · 0.36
test_diff_builder_chainFunction · 0.36