From feae59a0586052edc814f17a7276ce1b8e122d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Fri, 9 Aug 2019 15:43:21 -0400 Subject: [PATCH] Remove config list --keys flag --- Dockerfile | 1 - cmd/configList.go | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69aefe9..58256ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM alpine:3 ENV PSU_AUTH_TOKEN="" \ PSU_CONFIG="" \ - PSU_CONFIG_LIST_KEYS="" \ PSU_ENDPOINT_GROUP_LIST_FORMAT="" \ PSU_ENDPOINT_LIST_FORMAT="" \ PSU_INSECURE="" \ diff --git a/cmd/configList.go b/cmd/configList.go index ecd3eed..fc9910f 100644 --- a/cmd/configList.go +++ b/cmd/configList.go @@ -22,20 +22,12 @@ var configListCmd = &cobra.Command{ }) for _, key := range keys { - if viper.GetBool("config.list.keys") { - // List config key - fmt.Println(key) - } else { - // List config key and value - fmt.Printf("%s: %v\n", key, viper.Get(key)) - } + // List config key and value + fmt.Printf("%s: %v\n", key, viper.Get(key)) } }, } func init() { configCmd.AddCommand(configListCmd) - - configListCmd.Flags().Bool("keys", false, "Only list keys.") - viper.BindPFlag("config.list.keys", configListCmd.Flags().Lookup("keys")) }