cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func New

func New() *cobra.Command

func NewCmdGenerate

func NewCmdGenerate() *cobra.Command

func NewCmdLDFlags

func NewCmdLDFlags() *cobra.Command

Types

type GenerateOptions

type GenerateOptions struct {
	DisableInit                   bool
	GeneratedFilePath             string
	GoVersionPackage              string
	GeneratedFilePackageName      string
	GoversionVersion              string
	GeneratedVersionPrivateFields string
	GeneratedVersionSetFields     string
}

func (*GenerateOptions) Complete

func (o *GenerateOptions) Complete(cmd *cobra.Command, args []string) error

func (*GenerateOptions) Run

func (o *GenerateOptions) Run(ctx context.Context) error

func (*GenerateOptions) Validate

func (o *GenerateOptions) Validate() error

type LDFlagsOptions

type LDFlagsOptions struct {
	Version     goversion.Info
	PackageName string
	PrintLDFlag bool
	Strict      bool
}

func (*LDFlagsOptions) Complete

func (o *LDFlagsOptions) Complete(cmd *cobra.Command, args []string) error

func (*LDFlagsOptions) Run

func (o *LDFlagsOptions) Run(ctx context.Context) error

func (*LDFlagsOptions) Validate

func (o *LDFlagsOptions) Validate() error

Jump to

Keyboard shortcuts

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