diff --git a/lib/cli/src/commands/app/info.rs b/lib/cli/src/commands/app/info.rs index 494581204cc..b72a674b888 100644 --- a/lib/cli/src/commands/app/info.rs +++ b/lib/cli/src/commands/app/info.rs @@ -2,7 +2,7 @@ use super::util::AppIdentOpts; use crate::{ - commands::{app::get::CmdAppGet, AsyncCliCommand}, + commands::AsyncCliCommand, opts::{ApiOpts, ItemFormatOpts}, }; @@ -25,12 +25,8 @@ impl AsyncCliCommand for CmdAppInfo { type Output = (); async fn run_async(self) -> Result<(), anyhow::Error> { - let cmd_app_get = CmdAppGet { - api: self.api, - fmt: self.fmt, - ident: self.ident, - }; - let app = cmd_app_get.run_async().await?; + let client = self.api.client()?; + let (_ident, app) = self.ident.load_app(&client).await?; let app_url = app.url; let versioned_url = app.active_version.url; @@ -38,6 +34,7 @@ impl AsyncCliCommand for CmdAppInfo { eprintln!(" App Info "); eprintln!("> App Name: {}", app.name); + eprintln!("> Namespace: {}", app.owner.global_name); eprintln!("> App URL: {}", app_url); eprintln!("> Versioned URL: {}", versioned_url); eprintln!("> Admin dashboard: {}", dashboard_url);