v3go.etcd.io/etcd/pkg/v3/cobrautl Index | Files

package cobrautl

import "go.etcd.io/etcd/pkg/v3/cobrautl"

Index

Constants

const (
	// http://tldp.org/LDP/abs/html/exitcodes.html
	ExitSuccess = iota
	ExitError
	ExitBadConnection
	ExitInvalidInput // for txn, watch command
	ExitBadFeature   // provided a valid flag with an unsupported value
	ExitInterrupted
	ExitIO
	ExitBadArgs = 128

	ExitServerError       = 4
	ExitClusterNotHealthy = 5
)

Functions

func ExitWithError

func ExitWithError(code int, err error)

func UsageFunc

func UsageFunc(cmd *cobra.Command, version, APIVersion string) error

Source Files

error.go help.go

Version
v3.5.18 (latest)
Published
Jan 24, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
5 days ago

Tools for package owners.