Skip to content

Commit

Permalink
Print the config file path in "configure debug"
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 15, 2020
1 parent 9b816cc commit adea489
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/DopplerHQ/cli/pkg/printer"
"github.com/DopplerHQ/cli/pkg/utils"
"github.com/spf13/cobra"
"gopkg.in/gookit/color.v1"
)

var configureCmd = &cobra.Command{
Expand Down Expand Up @@ -57,6 +58,10 @@ and your config file. Flags have the highest priority; config file has the least
Run: func(cmd *cobra.Command, args []string) {
jsonFlag := utils.OutputJSON

if !jsonFlag {
color.Green.Printf("Configuration file: %s\n\n", configuration.UserConfigPath)
}

config := configuration.LocalConfig(cmd)
printer.ScopedConfigSource(config, jsonFlag, true)
},
Expand Down

0 comments on commit adea489

Please sign in to comment.