You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
413 B

package main
import (
web "h4kor/owl-blogs/cmd/owl/web"
var port int
func init() {
webCmd.PersistentFlags().IntVar(&port, "port", 8080, "Port to use")
var webCmd = &cobra.Command{
Use: "web",
Short: "Start the web server",
Long: `Start the web server`,
Run: func(cmd *cobra.Command, args []string) {
web.StartServer(repoPath, port)