mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
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:
parent
39ca57f3c8
commit
a71a0674f0
4 changed files with 132 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue