Documentation ¶
Index ¶
- func CheckCommandError(err error, step string, message ...string)
- func ExitWithError(err error)
- func ExitWithErrorStep(err error, step string)
- func ExitWithMessage(message string)
- func ExitWithMessageStep(message string, step string)
- func PostRun(cmd *cobra.Command, args []string)
- func PreRun(cmd *cobra.Command, args []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCommandError ¶ added in v1.5.0
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
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
ExitWithMessageStep allows exiting the command execution with a specific message and step.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.