diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 621f02d3..7add356f 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -596,9 +596,9 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "cli-engine" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b050b54bc79c2a5cc65e3df416f494a0cd30ea407e87a4a6cc7830c4ce4c397" +checksum = "ea2e69f391a1d3c2a4fdf93fda9a84c42a00fd199baf3346d084a40b9e3162d2" dependencies = [ "async-trait", "base64", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4a7b8560..118efc36 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -29,7 +29,7 @@ async-trait = "0.1" bytes = "1" chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] } clap = { version = "4.5", features = ["std", "string", "derive", "env"] } -cli-engine = { version = "0.10.3", features = ["pkce-auth"] } +cli-engine = { version = "0.10.4", features = ["pkce-auth"] } dirs = "6" domains-client = { path = "domains-client" } email-client = { path = "email-client" } diff --git a/rust/src/main.rs b/rust/src/main.rs index f8d0f354..5049a5a1 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -88,6 +88,13 @@ async fn main() -> ExitCode { .with_default_auth_provider("godaddy") .with_auth_provider(auth_provider) .with_auth_extra_commands([scopes::auth_scopes_command()]) + // gddy registers a single provider, so `provider` is not useful to + // display by default, and the granted scope list is long enough to + // truncate in `auth status` human output. Both stay available via + // `--fields provider,scopes`; `auth login` still shows the scopes + // it just granted. + .with_auth_status_default_fields("identity,expires_at,env,expired,refreshable") + .with_auth_login_default_fields("identity,expires_at,env,refreshable,scopes") .with_min_stage(cli_engine::Stage::Ga) .with_environments(Arc::clone(environments::instance())) .with_root_next_actions(Arc::new(|| {