mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 02:22:19 +00:00
Add support for UV_OFFLINE
(#9795)
Closes https://github.com/astral-sh/uv/issues/9794
This commit is contained in:
parent
cb3fefff15
commit
f64da9b763
5 changed files with 58 additions and 8 deletions
|
@ -200,7 +200,7 @@ pub struct GlobalArgs {
|
|||
/// Disable network access.
|
||||
///
|
||||
/// When disabled, uv will only use locally cached data and locally available files.
|
||||
#[arg(global = true, long, overrides_with("no_offline"))]
|
||||
#[arg(global = true, long, overrides_with("no_offline"), env = EnvVars::UV_OFFLINE, value_parser = clap::builder::BoolishValueParser::new())]
|
||||
pub offline: bool,
|
||||
|
||||
#[arg(global = true, long, overrides_with("offline"), hide = true)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue