# `PtcRunner.Kernel.CommandSubject`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/kernel/command_subject.ex#L1)

Closed provider locator used by command diagnostics.

# `occurrence`

```elixir
@type occurrence() :: %{destination: :workflow | :mission, index: 0..31} | nil
```

# `operation`

```elixir
@type operation() ::
  :declaration
  | :selection
  | :local
  | :application
  | :credentials
  | :authorization
  | :connectivity
  | :acquisition
  | :execution
  | :cleanup
```

# `t`

```elixir
@type t() :: %PtcRunner.Kernel.CommandSubject{
  kind: :provider,
  name: binary(),
  occurrence: occurrence(),
  operation: operation()
}
```

# `provider`

```elixir
@spec provider(binary(), operation(), occurrence()) ::
  {:ok, t()} | {:error, :invalid_command_subject}
```

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

---

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