From 73a7588e1b4bbf8b19d7d638683ee1e5df7b64f5 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:58:06 -0500 Subject: [PATCH] Unexport cmd.NewServeCmd --- cmd/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index d906cf189..83d18504c 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -27,8 +27,8 @@ import ( // Server is global so that tests can control and verify it. var Server *server.Command -// NewServeCmd creates a pilosa server and runs it with command line flags. -func NewServeCmd(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { +// newServeCmd creates a pilosa server and runs it with command line flags. +func newServeCmd(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command { Server = server.NewCommand(stdin, stdout, stderr) serveCmd := &cobra.Command{ Use: "server", @@ -52,5 +52,5 @@ on the configured port.`, } func init() { - subcommandFns["server"] = NewServeCmd + subcommandFns["server"] = newServeCmd }