clierr

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIError

type CLIError struct {
	// contains filtered or unexported fields
}

func CLIErr

func CLIErr(format string, args ...any) *CLIError

func CLIErrNoMessage

func CLIErrNoMessage(exitCode int) *CLIError

func CLIErrWithExitCode

func CLIErrWithExitCode(exitCode int, format string, args ...any) *CLIError

func CLIUsage

func CLIUsage(fl *pflag.FlagSet, format string, args ...any) *CLIError

func NoSubcommandErr

func NoSubcommandErr(fl *pflag.FlagSet) *CLIError

func (*CLIError) Error

func (e *CLIError) Error() string

func (*CLIError) ExitCode

func (e *CLIError) ExitCode() int

Jump to

Keyboard shortcuts

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