intake/cmd/serve.go

21 lines
333 B
Go

package cmd
import (
"github.com/Jaculabilis/intake/web"
"github.com/spf13/cobra"
)
var serveCmd = &cobra.Command{
Use: "serve",
Short: "Serve the web interface",
Long: `Serve the intake web interface.
`,
Run: func(cmd *cobra.Command, args []string) {
web.RunServer()
},
}
func init() {
rootCmd.AddCommand(serveCmd)
}