template

package
v0.0.0-...-113f7ca Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPNameKey        = "{{rpName}}"
	PackageNameKey   = "{{packageName}}"
	PackageTitleKey  = "{{packageTitle}}"
	CommitIDKey      = "{{commitID}}"
	FilenameSuffix   = ".tpl"
	ReleaseDate      = "{{releaseDate}}"
	PackageConfigKey = "{{packageConfig}}"
	GoVersion        = "{{goVersion}}"
	PackageVersion   = "{{packageVersion}}"
)

Variables

This section is empty.

Functions

func BindFlags

func BindFlags(flagSet *pflag.FlagSet)

BindFlags binds the flags to this command

func Command

func Command() *cobra.Command

Command returns the template command

func GeneratePackageByTemplate

func GeneratePackageByTemplate(rpName, packageName string, flags Flags) error

GeneratePackageByTemplate creates a new set of files based on the things in template directory

Types

type Flags

type Flags struct {
	SDKRoot        string
	TemplatePath   string
	PackageTitle   string
	Commit         string
	ReleaseDate    string
	PackageConfig  string
	GoVersion      string
	PackageVersion string
}

Flags ...

func ParseFlags

func ParseFlags(flagSet *pflag.FlagSet) Flags

ParseFlags parses the flags to a Flags struct

Jump to

Keyboard shortcuts

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