mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
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:
parent
2ed180ea6b
commit
23cc9b0322
12 changed files with 446 additions and 200 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue