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

Method new

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

Create a new Add command with default settings. # Example ```rust,ignore let add = Add::new(); ```

()

Source from the content-addressed store, hash-verified

195 /// let add = Add::new();
196 /// ```
197 pub fn new() -> Self {
198 Self {
199 files: Vec::new(),
200 all: false,
201 dry_run: false,
202 force: false,
203 recursive: true,
204 no_recursive: false,
205 directory: false,
206 }
207 }
208
209 /// Builder: set the files to add.
210 pub fn with_files<I, S>(mut self, files: I) -> Self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected