custom_env_vars/
custom_env_vars.rs

1use open_editor::{EditorCallBuilder, errors::OpenEditorError};
2
3fn main() -> Result<(), OpenEditorError> {
4    let user_input = EditorCallBuilder::new()
5        .with_env_vars(&["MY_EDITOR"])
6        .open_editor()?;
7    println!("User input:\n{user_input}");
8    Ok(())
9}