package cmd
import "github.com/spf13/cobra/cobra/cmd"
Index ¶
Variables ¶
Licenses contains all possible licenses a user can choose from.
Functions ¶
func Execute ¶
func Execute() error
Execute executes the root command.
Types ¶
type Command ¶
func (*Command) Create ¶
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
type Project ¶
type Project struct { // v2 PkgName string Copyright string AbsolutePath string Legal License Viper bool AppName string }
Project contains name, license and paths to projects.
func (*Project) Create ¶
Source Files ¶
add.go helpers.go init.go license_agpl.go license_apache_2.go license_bsd_clause_2.go license_bsd_clause_3.go license_gpl_2.go license_gpl_3.go license_lgpl.go license_mit.go licenses.go project.go root.go
- Version
- v1.2.0
- Published
- Jul 1, 2021
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 1 week ago –
Tools for package owners.