Public Access
Rename the module, CLI command name, and all references from keystone/basalt to draft, and fix the stale build/README content found along the way.
25 lines
445 B
Go
25 lines
445 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const oldModuleName = "github.com/FernandoJVideira/api_tmpl"
|
|
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 Draft project",
|
|
Long: `Create a new Draft project with the necessary structure and files.`,
|
|
Run: genProject,
|
|
}
|