refactor(cli): split non-issue command families into focused modules - #266
Merged
Merged
Conversation
Extract whoami/version, team, project, and profile command implementations from the monolithic LinearCli.CLI.Commands into four focused modules: - LinearCli.CLI.Commands.System (whoami, version) - LinearCli.CLI.Commands.Teams (team list/favorite/unfavorite) - LinearCli.CLI.Commands.Projects (project list/favorite/unfavorite/update) - LinearCli.CLI.Commands.Profiles (profile create/list/use/show/clear/delete) Rewire CLI dispatch clauses directly to the new modules. No forwarding facade retained in Commands. The filter_favorites/4 private helper is intentionally duplicated into Teams and Projects rather than shared, per the phase-18 plan guidance that private helpers stay with their command family. The Commands module now only owns issue commands, pending EXT-54. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ruby-automation
force-pushed
the
EXT-52-split-non-issue-command-families
branch
from
September 12, 2026 00:11
19307f0 to
faf8fb3
Compare
ruby-automation
enabled auto-merge (squash)
September 12, 2026 00:11
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
LinearCli.CLI.Commandsinto four focused modules underapp/lib/linear_cli/cli/commands/:System,Teams,Projects, andProfilesLinearCli.CLIdispatch clauses directly to the new modules — no forwarding facade retainedfilter_favorites/4private helper is intentionally duplicated inTeamsandProjectsper the Phase 18 plan (private helpers stay with their command family)LinearCli.CLI.Commandsnow only owns issue commands, pending EXT-54Test plan
mix test)mix precommit)LinearCli.CLI.main/2routes all team, project, profile, whoami, and version commands correctly through existingFavoritesCommandsTestcoverageCloses EXT-52
🤖 Generated with Claude Code