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.
25 lines
508 B
25 lines
508 B
3 years ago
|
/*
|
||
|
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
|
||
|
|
||
|
*/
|
||
|
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)
|
||
|
}
|