Open
Conversation
Refactor lists to subcommand pattern with full list management: Commands: - bird list # show owned lists (default) - bird list ls # list owned lists - bird list ls --member-of # lists you're a member of - bird list timeline <id> # tweets from list - bird list members <id> # members of list (with --all/--cursor pagination) - bird list add <list> <user> # add user to list - bird list remove <list> <user> # remove user from list Implementation: - Add ListMembers, ListAddMember, ListRemoveMember query IDs - Add ListMembersResult, ListMutationResult types - Implement getListMembers(), addListMember(), removeListMember() - Use parseUsersFromInstructions helper for robust user parsing - Full pagination support with --cursor/--all/--max-pages - Count validation for all commands - Add 'list' to KNOWN_COMMANDS for proper CLI arg parsing
- Add tests for getListMembers (success, pagination, errors, 404 retry) - Add tests for addListMember/removeListMember (success, errors, 404 retry) - Update test fixtures with new query ID stubs
Keep original commands unchanged: - bird lists (unchanged) - bird list-timeline (unchanged) Add new commands as additions only: - bird list members <id> - bird list add <list> <user> - bird list remove <list> <user>
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
Add list member management commands while preserving all existing functionality.
New Commands
Unchanged (backwards compatible)
Features
--cursor,--all,--max-pages)Implementation
Test plan