create

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "create <project dir>",
	Short: "Create a new Gone Project",
	RunE: func(cmd *cobra.Command, args []string) error {
		usr, err := user.Current()
		if err != nil {
			return err
		}
		cacheDir = strings.ReplaceAll(cacheDir, "~", usr.HomeDir)

		if isListExample {
			return listExamples()
		}

		if len(args) < 1 {
			return errors.New("please input project path")
		}

		return createProjectFromTpl(templateName, moduleName, args[0])
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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