new

package
v0.0.0-...-cb945ec Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 11 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 ProjectHelpTemplate = `` /* 311-byte string literal not displayed */

Variables

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

Functions

func CreateProject

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

CreateProject create a template project for Hellocmd

Types

type Project

type Project struct {
	Path      string // project gen path
	Name      string // project name
	ModPrefix string // mod prefix
	ModName   string // mod name
}

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