From 4db5057c5a6ff0bbdefe700dc06897bdd86bda0b Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Mon, 4 Dec 2023 15:37:26 -0500 Subject: [PATCH] Adding warning message --- internal/cli/apps.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 6eb76c7ea..c2fd01da8 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -330,6 +330,9 @@ func deleteAppCmd(cli *cli) *cobra.Command { } if !cli.force && canPrompt(cmd) { + if tenant, _ := cli.Config.GetTenant(cli.tenant); tenant.ClientID == inputs.ID { + cli.renderer.Warnf("Warning: You're about to delete the client used to authenticate the CLI. If deleted, the CLI will cease to operate once the access token has expired.", inputs.ID) + } if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil }