Allow providing the uv auth login password or token via stdin (#15642)

This commit is contained in:
Zanie Blue 2025-09-02 16:59:58 -05:00 committed by GitHub
parent 63b93a1db0
commit f9e98d1fb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 105 additions and 3 deletions

View file

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