Skip to content

Commit

Permalink
Require entity-type in profile status get
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
puerco committed Jul 12, 2024
1 parent 9877dba commit a3b802e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/cli/app/profile/status/status_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}

0 comments on commit a3b802e

Please sign in to comment.