mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-24 21:29:49 +00:00
Allow providing the uv auth login password or token via stdin (#15642)
This commit is contained in:
parent
63b93a1db0
commit
f9e98d1fb6
5 changed files with 105 additions and 3 deletions
|
|
@ -5567,12 +5567,16 @@ pub struct AuthLoginArgs {
|
|||
pub username: Option<String>,
|
||||
|
||||
/// The password to use for the service.
|
||||
///
|
||||
/// Use `-` to read the password from stdin.
|
||||
#[arg(long, conflicts_with = "token")]
|
||||
pub password: Option<String>,
|
||||
|
||||
/// The token to use for the service.
|
||||
///
|
||||
/// The username will be set to `__token__`.
|
||||
///
|
||||
/// Use `-` to read the token from stdin.
|
||||
#[arg(long, short, conflicts_with = "username", conflicts_with = "password")]
|
||||
pub token: Option<String>,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue