/* Copyright © 2022 NAME HERE */ package cmd import ( "github.com/spf13/cobra" "git.nagee.dev/isthisnagee/diary/server" ) // serveCmd represents the serve command var serveCmd = &cobra.Command{ Use: "serve", Short: "Run a web server at the specified port", Long: `Run a web server at the specified port. Allows you to view, edit, and delete notes from a UI`, Run: func(cmd *cobra.Command, args []string) { server.Run() }, } func init() { rootCmd.AddCommand(serveCmd) }