Files
draft/cmd/new.go
T
2026-01-27 17:33:14 +00:00

25 lines
454 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
const oldModuleName = "github.com/FernandoJVideira/simple_bank"
const srcDir = "embedded/api_tmpl"
type MainTemplateData struct {
ModuleName string
UseGRPC bool
}
func init() {
rootCmd.AddCommand(newCmd)
}
var newCmd = &cobra.Command{
Use: "new",
Short: "Create a new Keystone project",
Long: `Create a new Keystone project with the necessary structure and files.`,
Run: genProject,
}