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()?; ```
()
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected