From 618f6c8af45ec081f5ed5037749d299042ca1d11 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:57:10 -0500 Subject: [PATCH] Unexport cmd.Conf --- cmd/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index 9452cbc3c..953074f9c 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -25,10 +25,10 @@ import ( "github.com/pilosa/pilosa/server" ) -var Conf *ctl.ConfigCommand +var conf *ctl.ConfigCommand func NewConfigCommand(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { - Conf = ctl.NewConfigCommand(os.Stdin, os.Stdout, os.Stderr) + conf = ctl.NewConfigCommand(os.Stdin, os.Stdout, os.Stderr) Server := server.NewCommand(stdin, stdout, stderr) confCmd := &cobra.Command{ Use: "config", @@ -36,8 +36,8 @@ func NewConfigCommand(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command Long: `config prints the current configuration to stdout`, RunE: func(cmd *cobra.Command, args []string) error { - Conf.Config = Server.Config - if err := Conf.Run(context.Background()); err != nil { + conf.Config = Server.Config + if err := conf.Run(context.Background()); err != nil { return err } return nil