Skip to main content

initialize

Function initialize 

Source
pub async fn initialize(project_dir: Option<PathBuf>) -> MicrosandboxResult<()>
Expand description

Initialize a new microsandbox environment at the specified path

§Arguments

  • project_dir - Optional path where the microsandbox environment will be initialized. If None, uses current directory

§Example

use microsandbox_core::management::menv;

// Initialize in current directory
menv::initialize(None).await?;

// Initialize in specific directory
menv::initialize(Some("my_project".into())).await?;