cmdcontext

package
v0.6.128 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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