cli

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli is shared command plumbing for the stellad binary: dotenv loading and log-level parsing. It is not a user-facing chat CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDotEnv

func LoadDotEnv()

LoadDotEnv reads $STELLA_HOME/.env and sets any key that is not already present in the environment. Existing OS/service-injected variables win. Missing file is silently ignored; parse errors are skipped per line.

func NewMinLevelHandler

func NewMinLevelHandler(min slog.Level, next slog.Handler) slog.Handler

NewMinLevelHandler wraps next and drops records below min, regardless of what next would accept. It exists so chatty subsystem loggers (e.g. the River job queue, which heartbeats at DEBUG/INFO every few seconds) can be capped independently of the process-wide LOG_LEVEL.

func ParseLogLevel

func ParseLogLevel(raw string) slog.Level

ParseLogLevel maps a LOG_LEVEL value to slog.Level. Supported values: TRACE, DEBUG, INFO, WARN, ERROR (case-insensitive). Defaults to INFO if empty or unrecognized. It is a pure function of its argument: logging is configured before the server config is parsed, so the caller (main) passes the raw environment value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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