options

package
v1.2.1-0...-8b07466 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelpOptions

type HelpOptions struct {
	Version     bool    `short:"v" long:"version" description:"show this tool version"`
	Verbose     bool    `short:"b" long:"verbose" description:"Show verbose debug information"`
	Cover       bool    `short:"c" long:"cover" description:"if the project path exists ,cover the directory and init the project"`
	Tool        bool    `` /* 134-byte string literal not displayed */
	Empty       bool    `short:"e" long:"empty" description:"empty mean this project is a empty project or lib project"`
	Lib         bool    `short:"l" long:"lib" description:"same as --empty"`
	UseVendor   bool    `short:"n" long:"usevendor" description:"usevendor mean this project init whit vendor,default use go-modules"`
	NoKeep      *bool   `short:"k" long:"nokeep" description:"don't add .keep each dir"`
	Dirs        string  `short:"d" long:"dirs" description:"mkdir customer set,example: api,internal/configs,internal/model"`
	ModulesName string  `short:"m" long:"modulename" description:"modulename use for go modules init file: go.mod,default use project name"`
	TargetPath  *string `` /* 155-byte string literal not displayed */
	Args        struct {
		ProjectName []string `` /* 188-byte string literal not displayed */
	} `positional-args:"yes" required:"yes"`
}

func Parse

func Parse() *HelpOptions

Parse 开始解析命令行参数

Jump to

Keyboard shortcuts

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