Repository navigation
Integrate name resolution into commands - #13
Merged
Merged
Conversation
Replace inline project/todolist resolution boilerplate with centralized
require_project_id() and require_todolist_id() functions from lib/names.sh.
Changes:
- todos.sh: All functions now use require_project_id() for consistent
name-to-ID resolution and error handling
- todolists.sh: All functions use require_project_id(), and group
commands also use require_todolist_id() for todolist resolution
- people.sh: resolve_assignee() now delegates to resolve_person_id()
This enables users to specify projects and todolists by name instead of
requiring numeric IDs:
bcq todos --in "My Project"
bcq todo "New task" --list "Sprint 42" --in "Acme Corp"
bcq todolistgroups --list "Backlog" --in "Engineering"
Removes ~78 lines of duplicated resolution boilerplate.
3 tasks done
jeremy
added a commit
that referenced
this pull request
Feb 19, 2026
Replace inline project/todolist resolution boilerplate with centralized
require_project_id() and require_todolist_id() functions from lib/names.sh.
Changes:
- todos.sh: All functions now use require_project_id() for consistent
name-to-ID resolution and error handling
- todolists.sh: All functions use require_project_id(), and group
commands also use require_todolist_id() for todolist resolution
- people.sh: resolve_assignee() now delegates to resolve_person_id()
This enables users to specify projects and todolists by name instead of
requiring numeric IDs:
bcq todos --in "My Project"
bcq todo "New task" --list "Sprint 42" --in "Acme Corp"
bcq todolistgroups --list "Backlog" --in "Engineering"
Removes ~78 lines of duplicated resolution boilerplate.
1 task done
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
Example Usage
Files Changed
lib/commands/todos.sh- All functions now userequire_project_id()lib/commands/todolists.sh- Usesrequire_project_id()andrequire_todolist_id()lib/commands/people.sh-resolve_assignee()delegates toresolve_person_id()Test plan