Documentation
¶
Index ¶
- Constants
- Variables
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func GetRepo(cli, project, language, version string) error
- func GetRepoToLocal(language string, version string, dir string) error
- func GetRepoUrl(language string) string
- func GetRepoVersion(language string, version string) (string, error)
- func GetTemplateRepo(language string) string
- type ConfigEntity
- type DatabaseEntity
- type FormModelEntity
- type GithubRepoVersion
Constants ¶
View Source
const CliName = "firefly"
Variables ¶
View Source
var ASK = []string{
"Please input your project name.",
"Please choose your development language.",
"Please select the database you want.",
}
View Source
var Database = map[string][]*DatabaseEntity{}
View Source
var DatabaseList []*DatabaseEntity
View Source
var LANGUAGE = []string{
"Go",
"Rust",
"NodeJS",
}
View Source
var REGISTER = []string{
"Etcd",
}
Functions ¶
func GetRepoToLocal ¶
GetRepoToLocal 获取仓库到本地
func GetRepoVersion ¶
GetRepoVersion 获取仓库版本
Types ¶
type ConfigEntity ¶
type ConfigEntity struct {
Project string `json:"project" yaml:"project" mapstructure:"project"`
Language string `json:"language" yaml:"language" mapstructure:"language"`
Database []*DatabaseEntity `json:"database" yaml:"database" mapstructure:"database"`
}
func NewCreate ¶
func NewCreate() (*ConfigEntity, error)
type DatabaseEntity ¶
type FormModelEntity ¶
type FormModelEntity struct {
// contains filtered or unexported fields
}
func (FormModelEntity) Init ¶
func (model FormModelEntity) Init() tea.Cmd
func (FormModelEntity) View ¶
func (model FormModelEntity) View() string
type GithubRepoVersion ¶
type GithubRepoVersion struct {
TagName string `json:"tag_name"`
}
Click to show internal directories.
Click to hide internal directories.