new

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

View Source
const NewProjectHelpTemplate = `` /* 267-byte string literal not displayed */

Variables

View Source
var Cmd = cli.Command{
	Name:            "new",
	Aliases:         []string{"n"},
	Usage:           "Create Ox template project",
	Action:          CreateProject,
	SkipFlagParsing: false,
	UsageText:       NewProjectHelpTemplate,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "d",
			Value:       "",
			Usage:       "Specify the directory of the project",
			Destination: &project.Path,
		},
	},
}
View Source
var (
	DefaultProjectName = "ox-demo"
)

Functions

func CreateProject

func CreateProject(cli *cli.Context) (err error)

CreateProject create a template project for Ox

Types

type ProjectInfo

type ProjectInfo struct {
	// project dir
	Path string
	// project name
	Name      string
	ModPrefix string
}

ProjectInfo ...

Directories

Path Synopsis
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

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