cmdcontext

package
v0.6.185 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeParentPersistentPreRun

func InvokeParentPersistentPreRun(cmd *cobra.Command, args []string) error

InvokeParentPersistentPreRun executes the immediate parent command's PersistentPreRunE and PersistentPreRun functions, in that order. If an error is returned from PersistentPreRunE, it is immediately returned.

TODO: reverse walk up command tree? would need to ensure no one parent is invoked multiple times.

Types

type NoopWriter

type NoopWriter struct{}

NoopWriter is an implementation of the standard Writer which takes no action upon being asked to write.

func (NoopWriter) Write

func (w NoopWriter) Write(_ []byte) (n int, err error)

Jump to

Keyboard shortcuts

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