cmd

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const TraceErrorKey = "trace_error"

Variables

This section is empty.

Functions

func Logger added in v1.17.0

func Logger(v *viper.Viper) *slog.Logger

func NewAaCmd added in v1.18.0

func NewAaCmd(v *viper.Viper, fs afero.Fs) *cobra.Command

NewAaCmd returns the aa command

func NewGenConfCmd added in v1.14.0

func NewGenConfCmd(v *viper.Viper, fs afero.Fs) *cobra.Command

func NewParamCmd added in v1.18.0

func NewParamCmd(p *internal.ParamProfiler, v *viper.Viper, fs afero.Fs) *cobra.Command

NewParamCmd returns the param command

func NewRootCmd added in v0.0.2

func NewRootCmd(v *viper.Viper, fs afero.Fs) *cobra.Command

NewRootCmd returns the base command used when called without any subcommands

func NewScenarioCmd added in v1.3.0

func NewScenarioCmd(p *internal.ScenarioProfiler, v *viper.Viper, fs afero.Fs) *cobra.Command

NewScenarioCmd returns the scenario command

func NewTransitionCmd added in v0.1.0

func NewTransitionCmd(p *internal.TransitionProfiler, v *viper.Viper, fs afero.Fs) *cobra.Command

NewTransitionCmd returns the transition command

func NewTrendCmd added in v1.18.0

func NewTrendCmd(p *internal.TrendProfiler, v *viper.Viper, fs afero.Fs) *cobra.Command

NewTrendCmd returns the trend command

Types

type CliSlogHandler added in v1.18.0

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

func NewCliSlogHandler added in v1.18.0

func NewCliSlogHandler(opts *slog.HandlerOptions) *CliSlogHandler

func (*CliSlogHandler) Enabled added in v1.18.0

func (h *CliSlogHandler) Enabled(_ context.Context, level slog.Level) bool

func (*CliSlogHandler) Handle added in v1.18.0

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

func (*CliSlogHandler) WithAttrs added in v1.18.0

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

func (*CliSlogHandler) WithGroup added in v1.18.0

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

type MatchingGroupConf added in v1.14.0

type MatchingGroupConf struct {
	MatchingGroups []string `toml:"matching_groups" yaml:"matching_groups" json:"matching_groups"`
}

Jump to

Keyboard shortcuts

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