Add --group and --only-group to uv export (#8332)

Part of #8090

Most of the heavy lifting is done in #8309
This commit is contained in:
Zanie Blue 2024-10-18 12:06:41 -05:00
parent 39ca57f3c8
commit a71a0674f0
4 changed files with 132 additions and 3 deletions

View file

@ -3296,6 +3296,20 @@ pub struct ExportArgs {
#[arg(long, conflicts_with("no_dev"))]
pub only_dev: bool,
/// Include dependencies from the specified local dependency group.
///
/// May be provided multiple times.
#[arg(long, conflicts_with("only_group"))]
pub group: Vec<GroupName>,
/// Only include dependencies from the specified local dependency group.
///
/// May be provided multiple times.
///
/// The project itself will also be omitted.
#[arg(long, conflicts_with("group"))]
pub only_group: Vec<GroupName>,
/// Exclude the comment header at the top of the generated output file.
#[arg(long, overrides_with("header"))]
pub no_header: bool,