schnutibox/cmd/web.go

17 lines
281 B
Go
Raw Normal View History

2021-05-03 14:51:53 +02:00
// nolint:gochecknoglobals
package cmd
import (
"github.com/spf13/cobra"
"go.xsfx.dev/schnutibox/pkg/web"
)
var webCmd = &cobra.Command{
Use: "web",
Short: "Starting webservice",
Run: web.Run,
PreRun: func(cmd *cobra.Command, args []string) {
initConfig(false)
},
}