cmd

package
v0.0.0-...-c87253e Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = &cobra.Command{
	Use:   "record",
	Short: "Manage CI and test runs in TestLab",

	SilenceUsage:  true,
	SilenceErrors: true,
}

Root represents the base command when called without any subcommands

Functions

func Fanout

func Fanout(handlers ...slog.Handler) slog.Handler

Fanout distributes records to multiple slog.Handler in parallel

func SetBuildVersion

func SetBuildVersion(v string, c string, d string)

Types

type FanoutHandler

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

func (*FanoutHandler) Enabled

func (h *FanoutHandler) Enabled(ctx context.Context, l slog.Level) bool

Implements slog.Handler

func (*FanoutHandler) Handle

func (h *FanoutHandler) Handle(ctx context.Context, r slog.Record) error

Implements slog.Handler

func (*FanoutHandler) WithAttrs

func (h *FanoutHandler) WithAttrs(attrs []slog.Attr) slog.Handler

Implements slog.Handler

func (*FanoutHandler) WithGroup

func (h *FanoutHandler) WithGroup(name string) slog.Handler

Implements slog.Handler

Jump to

Keyboard shortcuts

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