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