cmdutil

package
v0.149.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLIHTTPClient = &http.Client{Timeout: 15 * time.Second}

Functions

func CloseAndJoin

func CloseAndJoin(name string, closer io.Closer, prior error) error

func CloseWithLog

func CloseWithLog(name string, closer io.Closer)

func DecodeCLIAPIResponse

func DecodeCLIAPIResponse(body io.Reader, destination any) error

func ExitError

func ExitError(code int, format string, args ...any) error

func GenTaskID

func GenTaskID() string

func NewRuntimeID

func NewRuntimeID() string

NewRuntimeID returns a compact 64-bit identifier for new local routing and filesystem records. Older eight-character IDs remain valid and attachable; only newly-created records use the larger collision space.

func RemoveFiles

func RemoveFiles(paths ...string) error

func RemoveIfExists

func RemoveIfExists(path string) error

func RemoveWithLog

func RemoveWithLog(path string)

func ShortLogValue

func ShortLogValue(value string) string

func Truncate

func Truncate(s string, n int) string

func Writef

func Writef(writer io.Writer, format string, args ...any) error

func Writeln

func Writeln(writer io.Writer, args ...any) error

Types

type CommandExitError

type CommandExitError struct {
	Code    int
	Message string
}

func (*CommandExitError) Error

func (e *CommandExitError) Error() string

Jump to

Keyboard shortcuts

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