From c04200ceeb474c43dd7a18d1ef9f0c7500467f60 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Fri, 6 Oct 2017 15:43:15 -0400 Subject: [PATCH] start tick command choose command name --- server/commands/start.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/server/commands/start.go b/server/commands/start.go index 1937840326..da58520714 100644 --- a/server/commands/start.go +++ b/server/commands/start.go @@ -30,15 +30,10 @@ var StartCmd = &cobra.Command{ RunE: startCmd, } -// TickStartCmd - command to create a start command with tick -func TickStartCmd(tick app.Ticker) *cobra.Command { - startCmd := &cobra.Command{ - Use: "start", - Short: "Start this full node", - RunE: tickStartCmd(tick), - } - addStartFlag(startCmd) - return startCmd +// InitTickStartCmd - initialize a command as the start command with tick +func InitTickStartCmd(tick app.Ticker, cmd *cobra.Command) { + cmd.RunE = tickStartCmd(tick) + addStartFlag(cmd) } // nolint TODO: move to config file