# Executor.env

Add an environment variable for command execution.

```rhai
executor.env(key: &str, value: &str) -> Executor
```

Adds an environment variable that will be set during command execution. Can be called multiple times to set multiple variables.

## Parameters

- `key` - Environment variable name
- `value` - Environment variable value

## Example

```rhai
let result = execute("echo $MY_VAR $OTHER")
    .env("MY_VAR", "hello")
    .env("OTHER", "world")
    .run()?;
print(result.stdout);  // "hello world"
```
