-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clap-v4 support for hab
cli
#9330
Conversation
👷 Deploy Preview for chef-habitat processing.
|
612cb36
to
9c7ee0e
Compare
CHEF-14734 |
d4f79d7
to
85003b9
Compare
88721b2
to
bd42815
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've gone over most of the code and these are the only comments I have so far without actually testing. I plan to start testing tomorrow. Do you mind rebasing this PR branch against main?
bd42815
to
ae3bf2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just some minor but important textual issues in the option descriptions. Also as discussed in a standup call earlier, it would be great if we could deploy v2 and v4 together as long as that could be done without things getting too convoluted or otherwise horrible.
27276c1
to
e8b51d3
Compare
Starting with some `cfg` trickery to make sure we continue to build old stuff. Very very experimental. Signed-off-by: Abhijit Gadgil <[email protected]> Moved `KeyType` into it's own module Signed-off-by: Abhijit Gadgil <[email protected]>
Initial skeleton for `hab pkg` command with Clap v4. This functionality gets enabled only with `v4` feature (off by default). Thus we continue to work with existing functionality. - Initial implementation of `hab pkg binds` - Initial implementation of `hab pkg binlink` - Initial implementation of `hab pkg path` - Initial implementation of `hab pkg build` - Added `hab pkg config` command - Added `hab pkg env` command - Added `hab pkg hash` command - Added `hab pkg header` command - Added `hab pkg info` command - Added `hab pkg verify` command Support for `pkg add bulkupload` command Also fixed issue with building on macos due to `#[cfg(....)]` in `do_build`. Implementation of `hab pkg delete` command Removed the `hab bldr job` from `main_v2` - Implemented `hab pkg channels` command - Implemented `hab pkg demote` command - Implemented `hab pkg dependencies` command - Implemented `hab pkg download` command - Implemented `hab pkg promote` command Implementation of `hab pkg list` command Making `v2` or `v4` as default - `hab pkg exec` - `hab pkg export` - `hab pkg provides` - `hab pkg search` - `hab pkg sign` - `hab pkg upload` - Added `hab pkg install` - Added `hab pkg uninstall` All `hab pkg ...` commands completed Signed-off-by: Abhijit Gadgil <[email protected]>
1. Added Unit tests for `AuthToken` APIs we are using 2. Added Unit tests for `BldrUrl` APIs we are using 3. Added Unit tests for `PkgDownloadOptions` This covers unit tests for *new* logic we have written during the porting activities. Signed-off-by: Abhijit Gadgil <[email protected]>
Signed-off-by: Abhijit Gadgil <[email protected]>
Signed-off-by: Abhijit Gadgil <[email protected]>
When exporting a package, if the given package does not exist in the specified channel (or default channel) we were unwrapping an error, rather than properly returning it. Signed-off-by: Abhijit Gadgil <[email protected]>
Rebase with origin/main fix conflicts Support for refresh channel and `FEATURE_LOCAL` was missing during rebase added that support to both CLI v2 and CLI v4. `HabPkgIdentValueParser` validator was not used for `PackageIdent` which is a struct field in many of the `pkg` commands. Started using it. Fixed String to Pathbuf and String to PackageIdent conversions in the validators Removed the unused CF and Mesos exporters. Signed-off-by: Abhijit Gadgil <[email protected]>
e8b51d3
to
79eac74
Compare
Starting with some
cfg
trickery to make sure we continue to build old stuff. Very very experimental.