Skip to content

Add cliguard to Contract Testing Tools - #139

Open
Bryandero98 wants to merge 1 commit into
ZoranPandovski:mainfrom
Bryandero98:add-cliguard
Open

Add cliguard to Contract Testing Tools#139
Bryandero98 wants to merge 1 commit into
ZoranPandovski:mainfrom
Bryandero98:add-cliguard

Conversation

@Bryandero98

Copy link
Copy Markdown

cliguard applies the contract-testing idea this section already covers for network APIs (Pact, WireMock, JsonSchema) to CLI surfaces instead: it snapshots a CLI's commands/flags/defaults by introspecting the framework's own object model (never by parsing --help text), classifies any change as breaking/additive/patch, and fails CI on an unintentional breaking change - with a GitHub Action that comments the diff directly on a PR. Framework adapters for Commander, CAC, Yargs (Node) and Click (Python). MIT-licensed, free, on npm and GitHub.

🤖 Generated with Claude Code

cliguard applies the same contract-testing idea this section already
covers for network APIs (Pact, WireMock, JsonSchema) to CLI surfaces:
it snapshots a CLI's commands/flags/defaults from the framework's own
object model, classifies changes as breaking/additive/patch, and fails
CI on an unintentional breaking change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant