Documentation
¶
Overview ¶
1. Charmed version of the Step method 2. PrintEnv with redaction list
Index ¶
- Constants
- func EnvVars(envVars map[string]any)
- func Error(ctx context.Context, userErr error)
- func FromContext(ctx context.Context) (*logger, error)
- func GetStatusColor(status string) string
- func Line(ctx context.Context, msg string, args ...any)
- func New(v *validator.Validate, opts ...loggerOption) (*logger, error)
- func PrintEnv(ctx context.Context, env map[string]string)
- func SetQuietMode(val bool)
- func Step(ctx context.Context, msg string, args ...any)
- func Step2(ctx context.Context, msg string, args ...any)
- func WithContext(ctx context.Context, log *logger) context.Context
- func WithJSON(enableJSON bool) loggerOption
- func WithSilent(silent bool) loggerOption
Constants ¶
View Source
const ( ColorGreen = "\033[032m" ColorRed = "\033[31m" ColorYellow = "\033[33m" ColorReset = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
from context returns the logger from the ui
func GetStatusColor ¶
func SetQuietMode ¶
func SetQuietMode(val bool)
func WithContext ¶
ui exposes methods for outputting state during the command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.