24 lines
429 B
Go
24 lines
429 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var generateCmd = &cobra.Command{
|
|
Use: "generate",
|
|
Short: "Generate project artifacts",
|
|
}
|
|
|
|
var generateTemplateCmd = &cobra.Command{
|
|
Use: "template",
|
|
Short: "Generate a template",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
// TODO: implement template generation
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
generateCmd.AddCommand(generateTemplateCmd)
|
|
rootCmd.AddCommand(generateCmd)
|
|
}
|