From 35ae352599b65be45181b9901fe8e8d46dadd857 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:57:16 -0500 Subject: [PATCH] Unexport cmd.GenerateConf --- cmd/generate_config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/generate_config.go b/cmd/generate_config.go index b0622b64d..346d38b56 100644 --- a/cmd/generate_config.go +++ b/cmd/generate_config.go @@ -24,17 +24,17 @@ import ( "github.com/pilosa/pilosa/ctl" ) -var GenerateConf *ctl.GenerateConfigCommand +var generateConf *ctl.GenerateConfigCommand func NewGenerateConfigCommand(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { - GenerateConf = ctl.NewGenerateConfigCommand(os.Stdin, os.Stdout, os.Stderr) + generateConf = ctl.NewGenerateConfigCommand(os.Stdin, os.Stdout, os.Stderr) confCmd := &cobra.Command{ Use: "generate-config", Short: "Print the default configuration.", Long: `generate-config prints the default configuration to stdout `, RunE: func(cmd *cobra.Command, args []string) error { - if err := GenerateConf.Run(context.Background()); err != nil { + if err := generateConf.Run(context.Background()); err != nil { return err } return nil