From 1d941efbb22dfc38b18bc55b14984f3f43e462f1 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:57:22 -0500 Subject: [PATCH] Unexport cmd.Inspector --- cmd/inspect.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/inspect.go b/cmd/inspect.go index e8526a414..08eacb441 100644 --- a/cmd/inspect.go +++ b/cmd/inspect.go @@ -25,10 +25,10 @@ import ( "github.com/pilosa/pilosa/ctl" ) -var Inspector *ctl.InspectCommand +var inspector *ctl.InspectCommand func NewInspectCommand(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { - Inspector = ctl.NewInspectCommand(os.Stdin, os.Stdout, os.Stderr) + inspector = ctl.NewInspectCommand(os.Stdin, os.Stdout, os.Stderr) inspectCmd := &cobra.Command{ Use: "inspect", @@ -42,8 +42,8 @@ Inspects a data file and provides stats. } else if len(args) > 1 { return fmt.Errorf("only one path allowed") } - Inspector.Path = args[0] - if err := Inspector.Run(context.Background()); err != nil { + inspector.Path = args[0] + if err := inspector.Run(context.Background()); err != nil { return err } return nil