25 lines
384 B
Go
25 lines
384 B
Go
/*
|
|
Copyright © 2022 Matthieu Derasse <git@derasse.fr>
|
|
|
|
*/
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// apiCmd represents the api command.
|
|
var apiCmd = &cobra.Command{
|
|
Use: "api",
|
|
Short: "Generate Go-Swagger Files and Controllers",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("api called")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
generateCmd.AddCommand(apiCmd)
|
|
}
|