#!/usr/bin/env bash
set -euo pipefail

STOP="/capability_server/stop_capability/request"
START="/capability_server/start_capability/request"
RUN_ID="$1"

bazel run //bin:show_message -- \
    --stdout \
    --chum_uri="chum://${RUN_ID}?t=${STOP}&t=${START}"\
    --flatten \
    --filter=".capability" \
    --filter=".meta.type_name" \
    --filter=".meta.timestamp"
