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

Method with_files

atomic-cli/src/commands/add.rs:208–215  ·  view source on GitHub ↗

Builder: set the files to add.

(mut self, files: I)

Source from the content-addressed store, hash-verified

206
207 /// Builder: set the files to add.
208 pub fn with_files<I, S>(mut self, files: I) -> Self
209 where
210 I: IntoIterator<Item = S>,
211 S: Into<String>,
212 {
213 self.files = files.into_iter().map(|s| s.into()).collect();
214 self
215 }
216
217 /// Builder: set the `--all` flag.
218 pub fn with_all(mut self, all: bool) -> Self {

Callers 15

test_add_with_files_vecFunction · 0.45
test_add_builder_chainFunction · 0.45
test_add_run_single_fileFunction · 0.45
test_add_run_directoryFunction · 0.45
test_add_run_dry_runFunction · 0.45
test_add_run_with_forceFunction · 0.45

Calls 1

into_iterMethod · 0.45

Tested by 15

test_add_with_files_vecFunction · 0.36
test_add_builder_chainFunction · 0.36
test_add_run_single_fileFunction · 0.36
test_add_run_directoryFunction · 0.36
test_add_run_dry_runFunction · 0.36
test_add_run_with_forceFunction · 0.36