Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
TODO: We may want to consider expanding this list.
Functions ¶
func Mainify ¶ added in v0.3.0
Mainify is a small utility that wraps a non-standard Cobra entry point (one returning an error) and generates a standard Cobra entry point. It's useful for entry points to be able to rely on defer-based cleanup, which doesn't occur if the entry point terminates the process. This method allows the entry point to indicate an error while still performing cleanup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.