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)
Click to show internal directories.
Click to hide internal directories.