func CreateCommand(ca *common.CommonArgs) *cobra.Command {
	var c *command
	c = &command{
		Command: cobra.Command{
			Use:  "serve",
			Args: cobra.NoArgs,
			PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
				return c.Preexecute(cmd, args)
			},
			RunE: func(cmd *cobra.Command, args []string) error {
				return c.Execute(cmd, args)
			},
		},
		CommonArgs: ca,
	}

	flgs := c.Flags()

	flgs.String(flags.SlackTokenKey, "", "If provided, start a connection to Slack")
	viper.BindPFlag(flags.SlackTokenKey, flgs.Lookup(flags.SlackTokenKey))
	viper.BindEnv(flags.SlackTokenKey)

	return traverse.TraverseRunHooks(&c.Command)
}
// CreateCommand returns the version command
CreateCommand returns the version command
// CreateCommand returns the version command
func CreateCommand(ca *common.CommonArgs) *cobra.Command {
	var c *command
	c = &command{
		Command: cobra.Command{
			Use:  "serve",
			Args: cobra.NoArgs,
			PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
				return c.Preexecute(cmd, args)
			},
			RunE: func(cmd *cobra.Command, args []string) error {
				return c.Execute(cmd, args)
			},
		},
		CommonArgs: ca,
	}
	flgs := c.Flags()
	flgs.String(flags.SlackTokenKey, "", "If provided, start a connection to Slack")
	viper.BindPFlag(flags.SlackTokenKey, flgs.Lookup(flags.SlackTokenKey))
	viper.BindEnv(flags.SlackTokenKey)
	return traverse.TraverseRunHooks(&c.Command)
}
func CreateCommand ( ca * common . CommonArgs ) * cobra . Command { var c * command c = & command { Command : cobra . Command { Use : " " , Args : cobra . NoArgs , PersistentPreRunE : func ( cmd * cobra . Command , args [ ] string ) error { return c . Preexecute ( cmd , args ) } , RunE : func ( cmd * cobra . Command , args [ ] string ) error { return c . Execute ( cmd , args ) } , } , CommonArgs : ca , } flgs := c . Flags ( ) flgs . String ( flags . SlackTokenKey , " " , " " ) viper . BindPFlag ( flags . SlackTokenKey , flgs . Lookup ( flags . SlackTokenKey ) ) viper . BindEnv ( flags . SlackTokenKey ) return traverse . TraverseRunHooks ( & c . Command ) }
CreateCommand returns the version command
CreateCommand returns the version command