Skip to main content

init_command

Function init_command 

Source
pub fn init_command() -> Result<()>
Expand description

Initialize autom8 configuration for the current project.

Creates the following directory structure:

  • ~/.config/autom8/ - Base config directory
  • ~/.config/autom8/config.toml - Global configuration
  • ~/.config/autom8/<project>/ - Project-specific directory
  • ~/.config/autom8/<project>/spec/ - Spec files
  • ~/.config/autom8/<project>/runs/ - Archived run states

ยงReturns

  • Ok(()) on success
  • Err(Autom8Error) if directory creation fails