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

Method with_files

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

Builder: set the files to add.

(mut self, files: I)

Source from the content-addressed store, hash-verified

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

collectMethod · 0.45
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