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 {

Calls 1

into_iterMethod · 0.45