Repository navigation
Split the CLI into a command package and refresh the design note - #25
Merged
Merged
Conversation
cli.py had grown to ~500 lines against the repo's ~150-line guideline. Commands now live in specdiff/cli/ by area (build_cmd, info_cmds, review_cmd, project_cmds) with shared loading in common.py and init's file templates in templates.py. The `specdiff = specdiff.cli:cli` entry point is unchanged. CLI tests no longer use Click's deprecated isolated_filesystem, which clears all 47 warnings, and patch review_spec where each module uses it. DESIGN.md's status note now reflects what is implemented. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FAykpfqqWA2GFjcC1p6FRy
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
cli.pyhad grown to about 500 lines, against the repo's ~150-line guideline. Commands now live insrc/specdiff/cli/by area:build_cmd: buildinfo_cmds: status, validate, impactreview_cmd: reviewproject_cmds: init, skill, clean, extract, uicommon.pyand init's files intemplates.pyThe
specdiff = specdiff.cli:clientry point is unchanged, and no file in the package exceeds ~135 lines.The CLI tests no longer use Click's deprecated
isolated_filesystem, which clears all 47 test warnings. They now patchreview_specwhere each module uses it.DESIGN.md's status note now reflects what is implemented: fingerprints, the repair stage as a first Reconciler, and acceptance tests as the current form of test specs. CLAUDE.md and CONTRIBUTING.md now describe the package.Pure restructuring: no behavior change.
Testing
pytest tests/: 206 passed, 0 warningsruff check/ruff format --check: cleanspecdiff --helplists all ten commandsGenerated by Claude Code