mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
Unexport cmd.Conf
This commit is contained in:
parent
4c3600f1c4
commit
618f6c8af4
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue