gen

package
v0.0.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenCmd = &cobra.Command{
	Use:   "gen",
	Short: "generate project structure",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runGen()
	},
}
View Source
var GenListCmd = &cobra.Command{
	Use:   "gen-list",
	Short: "list available generators",
	RunE: func(cmd *cobra.Command, args []string) error {
		return runGenList()
	},
}

Functions

func Register

func Register(e Erator)

Types

type Erator

type Erator struct {
	Name         string
	Desc         string
	Templates    []Template
	RequiredVars []RequiredVar
}

type RequiredVar

type RequiredVar struct {
	Type    string
	Name    string
	Message string
}

type Template

type Template struct {
	IF      string
	Path    string
	Content string
}

type Values

type Values map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL