Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Licenses map[string]License
Licenses contains all possible licenses a user can chose from
View Source
var RootCmd = &cobra.Command{
Use: "cobra",
Short: "A generator for Cobra based Applications",
Long: `Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
}
This represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately.
func ProjectPath ¶
func ProjectPath() string
Types ¶
type License ¶
type License struct { Name string // The type of license in use PossibleMatches []string // Similar names to guess Text string // License text data Header string // License header for source files }
License represents a software license agreement, containing the Name of the license, its possible matches (on the command line as given to cobra) the header to be used with each file on the file's creating, and the text of the license
Click to show internal directories.
Click to hide internal directories.