start tick command choose command name

This commit is contained in:
rigelrozanski 2017-10-06 15:43:15 -04:00
parent 0e703d3f9e
commit c04200ceeb
1 changed files with 4 additions and 9 deletions

View File

@ -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