errors

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx> SPDX-License-Identifier: Apache-2.0

Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx> SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCobraExit

func HandleCobraExit(cmd *cobra.Command, err error) error

HandleCobraExit is called when a command errors out or was not found.

Types

type BadArguments

type BadArguments struct {
	Msg string
}

BadArguments happens when the user provided incorrect arguments or options.

func (BadArguments) Error

func (err BadArguments) Error() string

type NotFound

type NotFound struct {
	Msg   string
	Group []string
}

NotFound happens when a sub-command was not found.

func (NotFound) Error

func (err NotFound) Error() string

Jump to

Keyboard shortcuts

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