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

Method new

atomic-cli/src/commands/init.rs:356–366  ·  view source on GitHub ↗

Create a new Init command with default values. This is useful for testing or programmatic repository creation. # Example ```rust,ignore let init = Init::new(); init.run()?; ```

()

Source from the content-addressed store, hash-verified

354 /// init.run()?;
355 /// ```
356 pub fn new() -> Self {
357 Self {
358 path: PathBuf::from("."),
359 view: DEFAULT_VIEW_NAME.to_string(),
360 kind: None,
361 vault: true,
362 no_vault: false,
363 adopt_git: false,
364 binding_key_file: None,
365 }
366 }
367
368 /// Create a new Init command targeting a specific path.
369 pub fn at_path<P: Into<PathBuf>>(path: P) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected