command

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintUsage

func PrintUsage()

func Supported

func Supported() []string

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func Get

func Get(name string) *Command

func New

func New(name, description string, flagSet *flag.FlagSet, op func(context *Context) error) *Command

func NewAsMapMethod

func NewAsMapMethod() *Command

func NewBuilderStruct

func NewBuilderStruct() *Command

func NewEnumConst

func NewEnumConst() *Command

func NewGettersSetters added in v0.0.2

func NewGettersSetters() *Command

func (*Command) Name

func (c *Command) Name() string

func (*Command) Parse

func (c *Command) Parse(arguments []string) ([]string, error)

func (*Command) PrintUsage

func (c *Command) PrintUsage()

func (*Command) Run

func (c *Command) Run(context *Context) error

type Context

type Context struct {
	Generator *generator.Generator

	Typ *types.Named
	Pkg struc.Package
	// contains filtered or unexported fields
}

func (*Context) Model

func (c *Context) Model() (*struc.Model, error)

Jump to

Keyboard shortcuts

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