feat(card): add --id flag to card:activity command - #243
Open
neolivz wants to merge 1 commit into
Open
Conversation
Allow card:activity to accept a card ID directly via --id, bypassing the board/list/card name resolution. This is consistent with how card:get-by-id works and makes it easier to use from automation tools that already have the card ID. The --id flag is mutually exclusive with --board/--list/--card.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow
card:activityto accept a card ID directly via--id, bypassing the--board/--list/--cardname resolution chain. This is consistent with howcard:get-by-idalready works.Motivation
When using
trello-clifrom automation tools (MCP servers, scripts), the card ID is often already known. Currentlycard:activityrequires--board,--list, and--cardflags which rely on the local name cache — this fails when the cache can't resolve a board name, even though the underlying API (getCardActions) only needs the card ID.Changes
card:activitynow accepts--id <cardId>as an alternative to--board/--list/--card--idis mutually exclusive with--board/--list/--card(via oclifexclusive)--board,--list,--cardare no longer required — they remain fully functional when provided--idusageExample