Skip to content

feat: support stack names in bulk commands#49

Merged
omattsson merged 1 commit intomainfrom
feat/bulk-name-resolution
Apr 22, 2026
Merged

feat: support stack names in bulk commands#49
omattsson merged 1 commit intomainfrom
feat/bulk-name-resolution

Conversation

@omattsson
Copy link
Copy Markdown
Owner

Summary

  • Replace parseBulkIDs (integer-only) with resolveBulkIDs that runs each element through resolveStackID, accepting stack names, UUIDs, and numeric IDs
  • All four bulk commands (deploy, stop, clean, delete) now accept names just like single-stack commands
  • Deduplication operates on resolved IDs, so my-stack and 42 deduplicate if the name resolves to 42
  • Early bounds check prevents unnecessary API calls when >50 inputs are provided

Behavioral notes

  • bulkClean and bulkDelete now create the client and resolve names before the confirmation prompt (fail-fast on auth/resolution errors rather than prompting first)

Test plan

  • All existing bulk command tests pass (table/JSON/YAML/quiet output, positional args, mixed args, API errors)
  • New unit tests for: stack names, UUIDs, mixed names+IDs, name dedup, unknown name error
  • Edge cases: empty input, commas-only, whitespace, >50 items
  • Full test suite green (go test ./...)

Closes #41

🤖 Generated with Claude Code

Replace parseBulkIDs (integer-only) with resolveBulkIDs that runs each
element through resolveStackID, accepting names, UUIDs, and numeric IDs.
This aligns bulk deploy/stop/clean/delete with single-stack commands.

Closes #41

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omattsson omattsson merged commit 38a4684 into main Apr 22, 2026
6 checks passed
@omattsson omattsson deleted the feat/bulk-name-resolution branch April 22, 2026 16:51
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.

feat: support stack names in bulk commands

1 participant