sample

package
v0.26.0-reserved Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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
	Cool  bool
}

func (*Handler) Cobra

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

func (*Handler) Flags

func (me *Handler) Flags(s *pflag.FlagSet)

func (*Handler) ParseArguments

func (me *Handler) ParseArguments(_ context.Context, _ *cobra.Command, _ []string) error

func (*Handler) Run

func (me *Handler) Run(
	ctx context.Context,
	cmd *cobra.Command,
	arr []string,
	read io.Reader,
	write io.Writer,
	br io.ByteReader, bw io.ByteWriter, bs io.ByteScanner,
) error

Jump to

Keyboard shortcuts

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