Skip to content
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

✨ command line interface #62

Merged
merged 2 commits into from
Jan 18, 2024
Merged

✨ command line interface #62

merged 2 commits into from
Jan 18, 2024

Conversation

juftin
Copy link
Owner

@juftin juftin commented Jan 15, 2024

This PR adds a CLI to the hatch-pip-compile package to handle the upgrading process. Relates to #59

Examples

Upgrade the default environment

The below command will upgrade all packages in the default environment.

hatch-pip-compile --upgrade

Upgrade a non-default environment

The below command will upgrade all packages in the docs environment.

hatch-pip-compile docs --upgrade

Upgrade a specific package

The below command will upgrade the requests package in the default
environment.

hatch-pip-compile --upgrade-package requests

Upgrade all pip-compile environments

The below command will upgrade all packages in all pip-compile environments.

hatch-pip-compile --upgrade --all

@juftin juftin added the enhancement New feature or request label Jan 15, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (969c7ca) 91.23% compared to head (5bdc904) 93.06%.

Files Patch % Lines
hatch_pip_compile/cli.py 95.52% 2 Missing and 1 partial ⚠️
hatch_pip_compile/__main__.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   91.23%   93.06%   +1.83%     
==========================================
  Files          11       16       +5     
  Lines         639      808     +169     
  Branches       95      128      +33     
==========================================
+ Hits          583      752     +169     
- Misses         34       35       +1     
+ Partials       22       21       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@juftin juftin force-pushed the feat/cli branch 2 times, most recently from e799446 to 820a109 Compare January 18, 2024 03:05
@juftin juftin force-pushed the feat/cli branch 2 times, most recently from 8439447 to 2159c35 Compare January 18, 2024 03:25
@juftin juftin merged commit 9912572 into main Jan 18, 2024
12 checks passed
@juftin juftin deleted the feat/cli branch January 18, 2024 04:09
@juftin
Copy link
Owner Author

juftin commented Jan 18, 2024

🎉 This PR is included in version 1.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants