feat: add gstack projects ls CLI command

New CLI for inspecting project artifacts:
  gstack projects ls    — list all projects with artifact counts and sizes
  gstack projects show  — detailed view of one project with manifest entries
  gstack projects clean — find and remove E2E test garbage directories

Reads .manifest.jsonl when available for richer output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-18 23:50:30 -07:00
parent ec6b2fc0e8
commit 624e4f234a
2 changed files with 272 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# gstack-projects — inspect and manage project artifacts
# Usage: gstack projects [ls|show|clean]
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
exec bun run "$SCRIPT_DIR/../lib/cli-projects.ts" "$@"