logcolor

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logcolor centralises the environment that makes CLI tools emit ANSI colour when lerd runs them with no TTY attached. Workers, UI-run commands and container execs all write to a pipe, a log file or the journal, so tools like artisan, composer, vite and pest disable colour on their own unless told otherwise. The web UI renders the escapes, so we ask for them everywhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Environ

func Environ(base []string) []string

Environ appends the colour vars to an existing environment slice.

func PodmanExecArgs

func PodmanExecArgs() []string

PodmanExecArgs returns the flags to add to a `podman exec` invocation.

func QuadletEnvLines

func QuadletEnvLines() string

QuadletEnvLines returns systemd `Environment=` lines for a quadlet or unit body, newline-terminated so callers can splice them into a template.

func ShellExports

func ShellExports() string

ShellExports returns `export KEY=VALUE` lines for a generated guard script.

func Vars

func Vars() []string

Vars returns the KEY=VALUE pairs that force colour, or nothing when the user has opted out with NO_COLOR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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