Skip to content

Add dotsec status (engagement overview)#4

Merged
Dxsk merged 1 commit into
mainfrom
feat/dotsec-status
Jun 10, 2026
Merged

Add dotsec status (engagement overview)#4
Dxsk merged 1 commit into
mainfrom
feat/dotsec-status

Conversation

@Dxsk

@Dxsk Dxsk commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

dotsec status [target] — a runtime overview in one command.

  • New lib/status.sh (single responsibility: state aggregation).
  • Global header: Exegol running?, Dashboard up + port.
  • Per engagement: domain, proxy up/down + ports (read from .env), tmux session present?, workspace size, loot file count, last activity.
  • dotsec status <target> filters to one engagement.
  • Added to usage() and zsh completions.

Fixed a set -e foot-gun along the way: var=$(grep … | head) aborts under pipefail when the grep finds nothing (e.g. missing WEB_PORT); guarded with || true.

Test Plan

  • make test — 53/53 bats (3 new in tests/status.bats: empty, list+stats, single target; via docker stub)
  • make lint — shellcheck clean
  • Live preview: header + per-engagement block (proxy down/tmux —/workspace size/loot/last) renders correctly with the docker stub
  • Manual: real "up" states (proxy/exegol/tmux running) — requires Docker/Exegol

@Dxsk Dxsk merged commit 8da6c67 into main Jun 10, 2026
4 checks passed
@Dxsk Dxsk deleted the feat/dotsec-status branch June 10, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant