pub(crate) async fn import(
state: &AppState,
path: &str,
run_commands: Option<bool>,
window_id: &str,
trust: &ImportTrust,
) -> Result<(Switched, Vec<String>), String>Expand description
Import the file at path as a new workspace and switch to it from window
window_id. run_commands None means “as trusted”. Returns the switch
and what the user should know.