cmd

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Version information - set via ldflags during build

View Source
var (
	JsonLogoutput bool
	LogFile       string
	LogColor      bool
	LogDebug      bool
	LogLevel      string
	IgnoreProxy   bool
	ConfigFile    string
)
View Source
var TerminalRestorer func()

TerminalRestorer is a function that can be called to restore terminal state

Functions

func CloseLogger added in v0.52.0

func CloseLogger()

CloseLogger closes any open log file handle created by initLogger. Safe to call multiple times.

func Execute

func Execute() error

Types

type CustomWriter

type CustomWriter struct {
	Writer *os.File
}

func (*CustomWriter) Write

func (cw *CustomWriter) Write(p []byte) (n int, err error)

type FatalHook

type FatalHook struct{}

FatalHook is a zerolog hook that restores terminal state before fatal exits

func (FatalHook) Run

func (h FatalHook) Run(e *zerolog.Event, level zerolog.Level, msg string)

Directories

Path Synopsis
Package common provides shared functionality for pipeleek platform-specific binaries.
Package common provides shared functionality for pipeleek platform-specific binaries.

Jump to

Keyboard shortcuts

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