create

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

create.go

Package create defines the 'create' subcommand for the Kuma CLI. It handles generating project scaffolds based on Go templates.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProjectPath defines the directory where the project will be created.
	ProjectPath string

	//VariablesFile specifies the path to the variables file.
	VariablesFile string

	//FromFile specifies the path to the YAML file with the structure and templates.
	FromFile string

	// TemplateVariables holds the variables for template replacement during the generate process.
	TemplateVariables map[string]interface{}
)
View Source
var CreateCmd = &cobra.Command{
	Use:   "create",
	Short: "Create a scaffold for a project based on Go Templates",
	Run: func(cmd *cobra.Command, args []string) {
		Create()
	},
}

CreateCmd represents the 'create' subcommand.

Functions

func Create

func Create()

Types

This section is empty.

Jump to

Keyboard shortcuts

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