# execute

Execute a command over SSH.

```rhai
conn.execute(command: &str) -> Map
```

## Returns

Map with:
- `code` - Exit code (i64)
- `output` - Command output (String)

## Examples

```rhai
let conn = ssh_builder().host("server.example.com").user("admin").build();
let result = conn.execute("hostname")?;
print(`Host: ${result.output}`);
```

```rhai
let conn = ssh_builder().host("server.example.com").build();
let result = conn.execute("ls -la /var/log")?;
if result.code == 0 {
    print(result.output);
} else {
    print("Command failed");
}
```
