add

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(f *factory.Factory) (*cobra.Command, error)

Types

type TemplateData

type TemplateData struct {
	// Stores value of the `CmdPath` local flag. Default Value: "."
	CmdPath string

	// Stores value of the `CmdName` local flag
	CmdName string

	// Stores the name of the root module (extracted from go.mod file)
	ModName string
}

TemplateData defines fields that will store all the data used for generating templates

Jump to

Keyboard shortcuts

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