cmdutil

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommandError added in v1.5.0

func CheckCommandError(err error, step string, message ...string)

CheckCommandError checks if the error is nil, if not, it returns the error and stops command execution.

func ExitWithError

func ExitWithError(err error)

ExitWithError allows exiting the command execution with a specific error

func ExitWithErrorStep added in v1.5.0

func ExitWithErrorStep(err error, step string)

ExitWithErrorStep allows exiting the command execution with a specific error

func ExitWithMessage

func ExitWithMessage(message string)

ExitWithMessage allows exiting the command execution with a specific message

func ExitWithMessageStep added in v1.5.0

func ExitWithMessageStep(message string, step string)

ExitWithMessageStep allows exiting the command execution with a specific message and step.

func PostRun

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

PostRun holds the standard things that should run after each command is executed.

func PreRun

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

PreRun holds the standard things that should run before each command is executed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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