mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Add uv add --no-sync
and uv remove --no-sync
(#5881)
## Summary Closes https://github.com/astral-sh/uv/issues/5867.
This commit is contained in:
parent
9bb55c4ac0
commit
8c6b667eeb
6 changed files with 76 additions and 0 deletions
|
@ -2304,6 +2304,10 @@ pub struct AddArgs {
|
|||
#[arg(long)]
|
||||
pub extra: Option<Vec<ExtraName>>,
|
||||
|
||||
/// Avoid syncing the virtual environment after re-locking the project.
|
||||
#[arg(long, conflicts_with = "frozen")]
|
||||
pub no_sync: bool,
|
||||
|
||||
/// Assert that the `uv.lock` will remain unchanged.
|
||||
#[arg(long, conflicts_with = "frozen")]
|
||||
pub locked: bool,
|
||||
|
@ -2354,6 +2358,10 @@ pub struct RemoveArgs {
|
|||
#[arg(long, conflicts_with("dev"))]
|
||||
pub optional: Option<ExtraName>,
|
||||
|
||||
/// Avoid syncing the virtual environment after re-locking the project.
|
||||
#[arg(long, conflicts_with = "frozen")]
|
||||
pub no_sync: bool,
|
||||
|
||||
/// Assert that the `uv.lock` will remain unchanged.
|
||||
#[arg(long, conflicts_with = "frozen")]
|
||||
pub locked: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue