internalcmd

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionIntercepted added in v0.14.0

func IsExecutionIntercepted(c *cobra.Command) bool

func PrepareInterceptedExecution added in v0.14.0

func PrepareInterceptedExecution(c *cobra.Command)

func RecursivelyWrapExecution added in v0.14.0

func RecursivelyWrapExecution(c *cobra.Command, interceptor ExecutionInterceptor)

func RecursivelyWrapRun

func RecursivelyWrapRun(c *cobra.Command)

func RestoreInterceptedExecutions added in v0.14.0

func RestoreInterceptedExecutions()

Types

type ExecutionInterceptor added in v0.14.0

type ExecutionInterceptor struct {
	Annotation      string
	ShouldIntercept func(*cobra.Command) bool
	Intercept       func(*cobra.Command, []string) (bool, error)
}

Jump to

Keyboard shortcuts

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