midcobra

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionID

func ExecutionID() string

Types

type DebugMiddleware

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

func (*DebugMiddleware) AttachToFlag

func (d *DebugMiddleware) AttachToFlag(flags *pflag.FlagSet, flagName string)

type Executable

type Executable interface {
	AddMiddleware(mids ...Middleware)
	Execute(ctx context.Context, args []string) int
}

func New

func New(cmd *cobra.Command) Executable

type Middleware

type Middleware interface {
	// contains filtered or unexported methods
}

type TraceMiddleware

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

func (*TraceMiddleware) AttachToFlag

func (t *TraceMiddleware) AttachToFlag(flags *pflag.FlagSet, flagName string)

Jump to

Keyboard shortcuts

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