Skip to content

Commit

Permalink
adds a server cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
bsach64 committed Aug 31, 2024
1 parent 3916c3c commit 9841425
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/bsach64/goback/server"
"github.com/spf13/cobra"
)

var serverCmd = &cobra.Command{
Use: "server",
Short: "starts a server",
Long: "starts a server",
Run: func(cmd *cobra.Command, args []string) {
server.Listen()
},
}

func init() {
rootCmd.AddCommand(serverCmd)
}

0 comments on commit 9841425

Please sign in to comment.