From 5d640b9a570d7ee8b47735266cca7c97f2d3302d Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 14 Oct 2026 02:32:55 +0200 Subject: [PATCH] uc context show: take UNCLOUD_CONTEXT into consideration (#444) Signed-off-by: Miek Gieben --- cmd/uc/context/show.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cmd/uc/context/show.go b/cmd/uc/context/show.go index cd041bf7..ad1d5a46 100644 --- a/cmd/uc/context/show.go +++ b/cmd/uc/context/show.go @@ -22,15 +22,6 @@ func NewShowCommand() *cobra.Command { } func show(uncli *cli.CLI) error { - // discard errors, only show the current context, otherwise nothing - if uncli.Config == nil { - return nil - } - - if len(uncli.Config.Contexts) == 0 { - return nil - } - fmt.Println(uncli.Config.CurrentContext) - + fmt.Println(uncli.ContextOverrideOrCurrent()) return nil }