cli

package
v0.0.0-...-dec34ff Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecationWarning

func DeprecationWarning(opts *DeprecationOptions)

func HandleErr

func HandleErr(err error)

func PrintExitError

func PrintExitError(summary string, detail ...string)

Types

type ConsoleWriter

type ConsoleWriter struct {
}

func NewConsoleWriter

func NewConsoleWriter() ConsoleWriter

func (ConsoleWriter) Write

func (w ConsoleWriter) Write(p []byte) (n int, err error)

type DeprecationOptions

type DeprecationOptions struct {
	Site      string
	Component string
	Message   string
	Details   string
	Version   string
}

type GroupedError

type GroupedError struct {
	Errors []error
	// contains filtered or unexported fields
}

func NewGroupedError

func NewGroupedError(msg string, errors []error) *GroupedError

func (*GroupedError) Error

func (b *GroupedError) Error() string

type MetaData

type MetaData struct {
	Version     string
	Commit      string
	ShortCommit string
	Date        string
}

func GetVersionMetadata

func GetVersionMetadata() *MetaData

func (*MetaData) ShortHash

func (md *MetaData) ShortHash() string

func (*MetaData) String

func (md *MetaData) String() string

Jump to

Keyboard shortcuts

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