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

Method with_files

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

Builder: set files to diff.

(mut self, files: I)

Source from the content-addressed store, hash-verified

147
148 /// Builder: set files to diff.
149 pub fn with_files<I, S>(mut self, files: I) -> Self
150 where
151 I: IntoIterator<Item = S>,
152 S: Into<String>,
153 {
154 self.files = files.into_iter().map(|s| s.into()).collect();
155 self
156 }
157
158 /// Builder: set the change to compare against.
159 pub fn with_change(mut self, change: impl Into<String>) -> Self {

Calls 2

collectMethod · 0.45
into_iterMethod · 0.45