package cmd

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/cobra/cmd"

Index

Variables

var Licenses map[string]License

Licenses contains all possible licenses a user can chose from

var RootCmd = &cobra.Command{
	Use:   "cobra",
	Short: "A generator for Cobra based Applications",
	Long:  "" /* 154 byte string literal not displayed */,
}

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

Source Files

add.go helpers.go init.go licenses.go root.go

Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
js/wasm
Imports
10 packages
Last checked
9 minutes ago

Tools for package owners.