24 lines
355 B
Go
24 lines
355 B
Go
|
/*
|
||
|
Copyright © 2023 AGECEM & Victor Lacasse-Beaudoin
|
||
|
*/
|
||
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// webCmd represents the web command
|
||
|
var webCmd = &cobra.Command{
|
||
|
Use: "web",
|
||
|
Short: "Start the webserver",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
fmt.Println("web called")
|
||
|
},
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
rootCmd.AddCommand(webCmd)
|
||
|
}
|