sample

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Value      string   `default:"default"`
	Cool       bool     `default:"false"`
	CoolArray  []string `default:"a,b,c"`
	CoolIntArr []int    `default:"1,2,3"`
	// contains filtered or unexported fields
}

func (*Handler) Args added in v0.26.0

func (me *Handler) Args() *args

func (*Handler) Command added in v0.26.0

func (me *Handler) Command() *cobra.Command

func (*Handler) Description added in v0.27.0

func (*Handler) Description() string

func (*Handler) Name added in v0.26.0

func (*Handler) Name() string

func (*Handler) Run

func (me *Handler) Run(
	ctx context.Context,
	read io.Reader,
	write io.Writer,
	en resolvers.SampleEnum,
	br io.ByteReader, bw io.ByteWriter, bs io.ByteScanner, out snake.Stdout,
) (snake.Output, error)

func (*Handler) Runner added in v0.41.0

func (me *Handler) Runner() snake.TypedRunner[*Handler]

func (*Handler) TypedRef added in v0.41.0

func (me *Handler) TypedRef() *cobra.Command

Jump to

Keyboard shortcuts

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