Search documentation of bb

# BB.Command.Event (bb v0.17.0)

Copy Markdown View Source

Payload type for command execution events.

Published to `[:command, command_name, execution_id]` path during command lifecycle.

## Summary

### Types

status()
t()

### Functions

new(frame_id, attrs)

## Types

# status()

    @type status() :: :started | :succeeded | :failed | :cancelled

# t()

    @type t() :: %BB.Command.Event{data: map(), status: status()}

## Functions

# new(frame_id, attrs)

    @spec new(
      atom(),
      keyword()
    ) :: {:ok, BB.Message.t()} | {:error, term()}