feat(cli): scaffold cougr-cli workspace crate with clap command dispatch - #275
feat(cli): scaffold cougr-cli workspace crate with clap command dispatch#275Muyideen-js wants to merge 1 commit into
Conversation
New cougr-cli binary crate added as workspace member with clap derive argument parser and 4 subcommand stubs (new, add, check, doctor). Each stub prints not yet implemented and exits non-zero. Metadata matches cougr-core conventions, publish = true. Part of salazarsebas#243
|
@Muyideen-js Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
This scaffold looks correct for #243, but #288 (which we're merging first) already ships a working |
|
Thanks for this! Heads up: |
|
@salazarsebas updated |
|
Closing — this PR scaffolds a new |
Closes #243
Description
Scaffold the
cougr-clibinary crate as a new workspace member with aclap-based argument parser and four subcommand stubs (new,add,check,doctor). Each stub prints a "not yet implemented" message and exits non-zero, providing a concrete integration point for follow-up issues to implement the actual logic.Part of #243
Implementation approach
The CLI uses
clapderive for ergonomic subcommand routing and auto-generated--help/--versionoutput. The binary name iscougr, installed viacargo install cougr-cli. The crate ispublish = trueand lives in the root of the workspace alongsidecougr-core.Subcommand stubs
cougr new <name>cougr add <piece>cougr checkcougr doctorChanges
cougr-cli/Cargo.toml— New binary crate withclapderive, MIT license,publish = true, metadata consistent withcougr-coreconventionscougr-cli/src/main.rs—clapderive argument parser with 4 subcommand stubscougr-cli/README.md— Minimal stub with usage and statusCargo.toml— Added"cougr-cli"to workspacemembersVerification
Out of scope