intake/cmd/serve.go

21 lines
333 B
Go
Raw Normal View History

2025-01-21 16:42:59 +00:00
package cmd
import (
2025-01-24 00:18:41 +00:00
"github.com/Jaculabilis/intake/web"
2025-01-21 16:42:59 +00:00
"github.com/spf13/cobra"
)
var serveCmd = &cobra.Command{
Use: "serve",
Short: "Serve the web interface",
2025-01-24 00:18:41 +00:00
Long: `Serve the intake web interface.
2025-01-21 16:42:59 +00:00
`,
Run: func(cmd *cobra.Command, args []string) {
2025-01-24 00:18:41 +00:00
web.RunServer()
2025-01-21 16:42:59 +00:00
},
}
func init() {
rootCmd.AddCommand(serveCmd)
}