Add --all-groups to uv sync|run|export|tree (#8892)

## Summary

Closes #8594

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
Jo 2024-11-21 00:07:36 +08:00 committed by GitHub
parent 2ed180ea6b
commit 23cc9b0322
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 446 additions and 200 deletions

View file

@ -2641,6 +2641,12 @@ pub struct RunArgs {
#[arg(long, conflicts_with("group"))]
pub only_group: Vec<GroupName>,
/// Include dependencies from all dependency groups.
///
/// `--no-group` can be used to exclude specific groups.
#[arg(long, conflicts_with_all = [ "group", "only_group" ])]
pub all_groups: bool,
/// Run a Python module.
///
/// Equivalent to `python -m <module>`.
@ -2876,6 +2882,12 @@ pub struct SyncArgs {
#[arg(long, conflicts_with("group"))]
pub only_group: Vec<GroupName>,
/// Include dependencies from all dependency groups.
///
/// `--no-group` can be used to exclude specific groups.
#[arg(long, conflicts_with_all = [ "group", "only_group" ])]
pub all_groups: bool,
/// Install any editable dependencies, including the project and any workspace members, as
/// non-editable.
#[arg(long)]
@ -3299,6 +3311,12 @@ pub struct TreeArgs {
#[arg(long, conflicts_with("group"))]
pub only_group: Vec<GroupName>,
/// Include dependencies from all dependency groups.
///
/// `--no-group` can be used to exclude specific groups.
#[arg(long, conflicts_with_all = [ "group", "only_group" ])]
pub all_groups: bool,
/// Assert that the `uv.lock` will remain unchanged.
///
/// Requires that the lockfile is up-to-date. If the lockfile is missing or
@ -3436,6 +3454,12 @@ pub struct ExportArgs {
#[arg(long, conflicts_with("group"))]
pub only_group: Vec<GroupName>,
/// Include dependencies from all dependency groups.
///
/// `--no-group` can be used to exclude specific groups.
#[arg(long, conflicts_with_all = [ "group", "only_group" ])]
pub all_groups: bool,
/// Exclude the comment header at the top of the generated output file.
#[arg(long, overrides_with("header"))]
pub no_header: bool,