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

Method with_files

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

Builder: set files to diff.

(mut self, files: I)

Source from the content-addressed store, hash-verified

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

Calls 1

into_iterMethod · 0.45