Function load_workspace

Source
pub fn load_workspace(path: &Path) -> Result<()>
Expand description

Loads a workspace file from disk.

This function replaces the current workspace content with the workflow loaded from the specified file path. It updates the workspace’s base path to the parent directory of the loaded file.

§Arguments

  • path - Path to the workspace file to load

§Returns

  • Result<()> - Success or error indicating if the operation completed

§Examples

use std::path::Path;
use aimx::workspace::load_workspace;
 
// Load a workspace from a file
// load_workspace(Path::new("my_workspace.aim"))?;