# `Imp.ExternalCommand`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/external_command.ex#L604)

Runs an executable with argv through Imp's shared process-group lifecycle.

The wrapper normalizes exit results and applies bounded redaction. It does not
invoke a shell or implement a second process-management path.

# `result`

```elixir
@type result() :: %{
  exit_status: non_neg_integer() | :timeout,
  output: String.t(),
  duration_ms: non_neg_integer()
}
```

# `run`

```elixir
@spec run(String.t(), [String.t()], keyword()) :: {:ok, result()} | {:error, term()}
```

# `start`

```elixir
@spec start(String.t(), [String.t()], keyword()) ::
  {:ok, Imp.ExternalCommand.Handle.t()} | {:error, term()}
```

Starts a managed process group and returns after its OS group identity is known.

# `stop`

```elixir
@spec stop(Imp.ExternalCommand.Handle.t(), timeout()) :: :ok | {:error, term()}
```

Synchronously stops a managed process group and verifies that the group is gone.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
