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:
Charlie Marsh 2024-08-07 14:09:10 -04:00 committed by GitHub
parent 9bb55c4ac0
commit 8c6b667eeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 0 deletions

View file

@ -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,