From a3b802ef269a836e78bd54e5577936b4c6cf62be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Thu, 11 Jul 2024 21:23:54 -0600 Subject: [PATCH] Require entity-type in profile status get MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit marks `entity-type` as required in `minder profile status get` to avoide sending ENTITY_UNSPECIFIED to the API (which always fails). Signed-off-by: Adolfo GarcĂ­a Veytia (Puerco) --- cmd/cli/app/profile/status/status_get.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/cli/app/profile/status/status_get.go b/cmd/cli/app/profile/status/status_get.go index 17a37c1385..ccd7e128f5 100644 --- a/cmd/cli/app/profile/status/status_get.go +++ b/cmd/cli/app/profile/status/status_get.go @@ -100,4 +100,9 @@ func init() { os.Exit(1) } + if err := getCmd.MarkFlagRequired("entity-type"); err != nil { + getCmd.Printf("Error marking flag required: %s", err) + os.Exit(1) + } + }