output

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 20 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

Index

Constants

View Source
const ThemeEnv = "NIMBU_THEME"

ThemeEnv selects the line-output palette: "light" or "dark". Empty or any other value means unset.

Variables

View Source
var ErrOutputConflict = errors.New("cannot combine --json and --plain")

Functions

func ASCIIOnly added in v0.5.0

func ASCIIOnly() bool

ASCIIOnly reports whether output should avoid non-ASCII glyphs: TERM=dumb, NIMBU_ASCII=1, or a locale that is set but not UTF-8 (LC_ALL, then LC_CTYPE, then LANG). An unset locale keeps Unicode, since most terminals that run without one (containers, CI) still render UTF-8.

func CharmProfile added in v0.5.0

func CharmProfile(profile termenv.Profile) colorprofile.Profile

CharmProfile maps a termenv profile (the output package's per-stream color decision) to the colorprofile that Bubble Tea and Lipgloss v2 render with.

func ColorEnabled added in v0.5.0

func ColorEnabled(mode string, isTTY bool) bool

ColorEnabled decides whether a stream gets color.

Precedence, highest first:

  1. --color=always|never, also set through NIMBU_COLOR (mode)
  2. NO_COLOR (non-empty) disables
  3. TERM=dumb disables
  4. FORCE_COLOR=0 disables
  5. whether the stream is a terminal

Generic force signals (FORCE_COLOR=1, CLICOLOR_FORCE) are deliberately not honored: they are commonly exported shell-wide for Node tooling and would leak ANSI escapes into pipes and agent transcripts. Use --color=always or NIMBU_COLOR=always to force color.

func CountPayload

func CountPayload(count int) map[string]any

CountPayload creates a count result object.

func Detail added in v0.1.5

func Detail(ctx context.Context, jsonData any, plainValues []any, fields []Field) error

Detail writes a single resource across all three output modes. JSON mode writes jsonData, Plain mode writes plainValues as TSV, and Human mode renders fields as aligned key-value pairs.

func DumbTerminal added in v0.5.0

func DumbTerminal() bool

DumbTerminal reports TERM=dumb: a terminal without cursor control (Emacs shell-mode, some editors' consoles). Full-screen programs such as the init wizard must fall back to line output there.

func ErrorPayload

func ErrorPayload(err error) map[string]any

ErrorPayload creates an error status object.

func EscapeTSV added in v0.5.0

func EscapeTSV(value string) string

EscapeTSV escapes one --plain field; see WritePlain for the scheme.

func Fprintf added in v0.1.5

func Fprintf(ctx context.Context, format string, args ...any) (int, error)

Fprintf writes formatted text to the context Writer's stdout.

func Fprintln added in v0.1.5

func Fprintln(ctx context.Context, args ...any) (int, error)

Fprintln writes a line to the context Writer's stdout.

func IDPayload

func IDPayload(id string) map[string]any

IDPayload creates an ID result object.

func IsHuman

func IsHuman(ctx context.Context) bool

IsHuman returns true if human-readable output is enabled (neither JSON nor plain).

func IsJSON

func IsJSON(ctx context.Context) bool

IsJSON returns true if JSON output is enabled.

func IsPlain

func IsPlain(ctx context.Context) bool

IsPlain returns true if plain/TSV output is enabled.

func JSON

func JSON(ctx context.Context, v any) error

JSON writes v as JSON to the context's writer.

func JSONErr

func JSONErr(ctx context.Context, v any) error

JSONErr writes v as JSON to stderr.

func JSONFromSliceFields added in v0.2.2

func JSONFromSliceFields(ctx context.Context, slice any, fields []string) error

JSONFromSliceFields writes a slice as JSON with only the requested fields.

func PathPayload

func PathPayload(path string) map[string]any

PathPayload creates a path result object.

func Plain

func Plain(ctx context.Context, values ...any) error

Plain writes values as tab-separated text to the writer.

func PlainFromSlice

func PlainFromSlice(ctx context.Context, slice any, fields []string) error

PlainFromSlice writes each struct in a slice as a TSV row.

func PlainFromStruct

func PlainFromStruct(ctx context.Context, v any, fields []string) error

PlainFromStruct extracts specified fields from a struct and writes as TSV.

func PlainRows

func PlainRows(ctx context.Context, rows [][]any) error

PlainRows writes multiple rows as TSV.

func Print

func Print(ctx context.Context, jsonData any, plainValues []any, humanFn func() error) error

Print writes to stdout based on output mode.

func PrintSlice

func PrintSlice(ctx context.Context, slice any, fields []string, headers []string) error

PrintSlice writes a slice based on output mode.

func ProjectLocale added in v0.3.0

func ProjectLocale(value any, locale string) (any, error)

ProjectLocale returns a display-only copy with translations[locale] recursively overlaid onto each containing object.

func StatusPayload

func StatusPayload(status string, message string) map[string]any

StatusPayload creates a simple status object for JSON output.

func SuccessPayload

func SuccessPayload(message string) map[string]any

SuccessPayload creates a success status object.

func Unified added in v0.3.1

func Unified(fromLabel, toLabel, from, to string) string

Unified renders a git-style unified diff. Line endings are normalized and a trailing newline is enforced so callers can compare text leniently.

func Warn added in v0.5.0

func Warn(ctx context.Context, msg string) error

Warn writes "warning: <msg>" to the context Writer's stderr. Warnings never go to stdout, so they cannot corrupt --plain rows or --json documents.

func WithMode

func WithMode(ctx context.Context, mode Mode) context.Context

WithMode adds output mode to context.

func WithProgress

func WithProgress(ctx context.Context, p *Progress) context.Context

WithProgress stores a progress session in context.

func WithSyncTimeline added in v0.1.3

func WithSyncTimeline(ctx context.Context, tl *SyncTimeline) context.Context

WithSyncTimeline stores a SyncTimeline in context.

func WithWriter

func WithWriter(ctx context.Context, w *Writer) context.Context

WithWriter adds writer to context.

func WriteDetail added in v0.1.5

func WriteDetail(w io.Writer, fields []Field) error

WriteDetail writes fields as aligned "Label: Value" pairs. Fields created with F() are skipped when their value is the zero value. Labels are padded by display width, and continuation lines of multi-line values are indented under the value column.

func WriteJSON

func WriteJSON(w io.Writer, v any) error

WriteJSON writes v as indented JSON to the writer.

func WritePlain

func WritePlain(w io.Writer, values ...any) error

WritePlain writes values as one tab-separated line.

Escaping scheme (so every record stays exactly one line with a fixed number of fields): a backslash becomes `\\`, a tab `\t`, a line feed `\n` and a carriage return `\r`. Nothing else is escaped. Decode by replacing those four two-character sequences, scanning left to right.

nil values and nil pointers render as an empty field; other pointers are dereferenced so a *string prints its text rather than an address.

func WriteTable

func WriteTable(ctx context.Context, slice any, fields []string, headers []string) error

WriteTable writes a slice of structs as a table.

Types

type CopyTimeline

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

CopyTimeline renders a rolling timeline of copy stages to stderr. It satisfies migrate.CopyObserver via structural typing.

func NewCopyTimeline

func NewCopyTimeline(ctx context.Context, dryRun bool) *CopyTimeline

NewCopyTimeline creates a timeline renderer. Call Close() when done.

func (*CopyTimeline) Close

func (tl *CopyTimeline) Close()

Close stops the spinner goroutine and clears the active stage display. Does NOT render the footer — call Footer() first if the operation succeeded. Idempotent: safe to call multiple times.

func (*CopyTimeline) ErrorFooter

func (tl *CopyTimeline) ErrorFooter(msg string)

ErrorFooter renders a closing error line (└ Error! <msg>). Clears the active spinner, stops the animation loop, and marks closed. Idempotent: second call is a no-op.

func (*CopyTimeline) Footer

func (tl *CopyTimeline) Footer()

Footer renders the closing summary line (└ Done! Done in Xs). Call this only on success — omit on error so the footer doesn't mislead. Idempotent: second call is a no-op.

func (*CopyTimeline) Header

func (tl *CopyTimeline) Header(from, to string)

Header prints the opening line of the timeline.

func (*CopyTimeline) PreparePrompt added in v0.1.13

func (tl *CopyTimeline) PreparePrompt()

PreparePrompt clears live spinner output before a blocking prompt is printed.

func (*CopyTimeline) StageDone

func (tl *CopyTimeline) StageDone(name, summary string)

StageDone finalizes a stage with a summary.

func (*CopyTimeline) StageItem

func (tl *CopyTimeline) StageItem(name, detail string, current, total int64)

StageItem updates the active stage's sub-detail.

func (*CopyTimeline) StageSkip

func (tl *CopyTimeline) StageSkip(name, reason string)

StageSkip marks a stage as skipped with a reason.

func (*CopyTimeline) StageStart

func (tl *CopyTimeline) StageStart(name string)

StageStart begins a new active stage with a spinner.

func (*CopyTimeline) StageWarning added in v0.1.13

func (tl *CopyTimeline) StageWarning(stage, msg string)

StageWarning records or prints a warning owned by one timeline stage.

func (*CopyTimeline) SubStageDone

func (tl *CopyTimeline) SubStageDone(stage, sub, summary string)

SubStageDone records a completed sub-item within the active stage.

type Field added in v0.1.5

type Field struct {
	Label string
	Value any
	// contains filtered or unexported fields
}

Field represents one row in a detail view.

func F added in v0.1.5

func F(label string, value any) Field

F creates a Field that is skipped when the value is the zero value for its type.

func FAlways added in v0.1.5

func FAlways(label string, value any) Field

FAlways creates a Field that is always displayed, even when zero.

type Glyphs added in v0.5.0

type Glyphs struct {
	OK        string // success marker
	Fail      string // failure marker
	Warn      string // warning marker
	Arrow     string // from -> to
	Step      string // completed timeline stage
	SubStep   string // completed sub-item inside a stage
	Pending   string // planned (dry-run) item
	Top       string // timeline opening corner
	Rail      string // timeline connector
	Bottom    string // timeline closing corner
	Dash      string // separator between a name and its summary
	Ellipsis  string // truncation marker
	Spinner   []string
	ASCIIOnly bool
}

Glyphs is the symbol set used for status markers and timeline chrome. Every glyph has an ASCII fallback, and status glyphs are always paired with a word so meaning survives without color or Unicode.

func GlyphSet added in v0.5.0

func GlyphSet(ascii bool) Glyphs

GlyphSet returns the Unicode or ASCII glyph set.

type Mode

type Mode struct {
	JSON  bool
	Plain bool
}

Mode represents the output format mode.

func FromContext

func FromContext(ctx context.Context) Mode

FromContext extracts output mode from context.

func FromEnv

func FromEnv() Mode

FromEnv creates a Mode from environment variables.

func FromFlags

func FromFlags(jsonOut, plainOut bool) (Mode, error)

FromFlags creates a Mode from CLI flags.

type Palette added in v0.5.0

type Palette struct {
	Success string // completed work, healthy state
	Warning string // warnings, dry-run accents, unverified state
	Error   string // failures
	Accent  string // active work, selections, primary actions, headings
	Muted   string // rails, labels, hints, secondary text
	Path    string // file paths, identifiers, types
	Border  string // frames and separators (non-text)
}

Palette is the CLI's one semantic chrome palette, as hex colors. Every non-banner color (line output, the init wizard, the banner picker, help, nimbu server) comes from here, so meaning and tone stay consistent.

There is deliberately no "text" token: body text and values keep the terminal's own foreground (use Strong for emphasis), which is readable on any background. Meaning never rests on color alone; markers and words carry it too.

func PaletteFor added in v0.5.0

func PaletteFor(dark bool) Palette

PaletteFor returns the palette variant for a dark or light background.

type ParseError

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

ParseError indicates invalid output mode configuration.

func (*ParseError) Error

func (e *ParseError) Error() string

type Progress

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

Progress renders lightweight human-only progress feedback on stderr.

On an animated terminal the active task is redrawn in place on one line every tick. The line only appears once a task has run for spinnerDelay, so near-instant work never flashes a spinner.

Progress installs no signal handler of its own: the command layer owns SIGINT/SIGTERM and cancels the context on the first one. When that context is canceled the live line is erased and drawing stops, so Ctrl-C never leaves a half-drawn line under the shell prompt or under the error that follows.

func NewDisabledProgress

func NewDisabledProgress() *Progress

NewDisabledProgress returns a no-op progress that silently discards all output. Use when a timeline renderer handles progress display instead.

func NewProgress

func NewProgress(ctx context.Context) *Progress

NewProgress builds a human-mode stderr progress session for the current context.

func ProgressFromContext

func ProgressFromContext(ctx context.Context) *Progress

ProgressFromContext extracts the progress session from context.

func (*Progress) Close

func (p *Progress) Close()

Close stops background rendering and leaves stderr clean: a task that was never finished has its live line erased rather than reported as done. Close is idempotent.

func (*Progress) Counter

func (p *Progress) Counter(label string, total int64) *Task

Counter starts an item counter task.

func (*Progress) Phase

func (p *Progress) Phase(label string) *Task

Phase starts a spinner task.

func (*Progress) Transfer

func (p *Progress) Transfer(label string, total int64) *Task

Transfer starts a byte-progress task.

type SyncCategory added in v0.1.3

type SyncCategory struct {
	Label string
	Count int
}

SyncCategory describes one category for the timeline.

type SyncTimeline added in v0.1.3

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

SyncTimeline renders category-grouped progress for theme push/sync.

func NewSyncTimeline added in v0.1.3

func NewSyncTimeline(ctx context.Context, mode, theme string, dryRun bool) *SyncTimeline

NewSyncTimeline creates a timeline renderer for theme push/sync.

func SyncTimelineFromContext added in v0.1.3

func SyncTimelineFromContext(ctx context.Context) *SyncTimeline

SyncTimelineFromContext retrieves the SyncTimeline from context, or nil.

func (*SyncTimeline) CategoryDone added in v0.1.3

func (tl *SyncTimeline) CategoryDone(index int)

CategoryDone finalizes a category, writing a permanent completion line.

func (*SyncTimeline) Close added in v0.1.3

func (tl *SyncTimeline) Close()

Close stops the animation goroutine and clears the active display. Idempotent.

func (*SyncTimeline) DeleteFailed added in v0.1.3

func (tl *SyncTimeline) DeleteFailed(displayPath, errorDetail string)

DeleteFailed records a delete failure.

func (*SyncTimeline) DeletesDone added in v0.1.3

func (tl *SyncTimeline) DeletesDone()

DeletesDone finalizes the delete phase with a permanent completion line.

func (*SyncTimeline) ErrorFooter added in v0.1.3

func (tl *SyncTimeline) ErrorFooter()

ErrorFooter renders a closing error summary line. Idempotent.

func (*SyncTimeline) FileDeleted added in v0.1.3

func (tl *SyncTimeline) FileDeleted()

FileDeleted records a successful delete.

func (*SyncTimeline) FileFailed added in v0.1.3

func (tl *SyncTimeline) FileFailed(displayPath, errorDetail string)

FileFailed records an upload failure. errorDetail is a pre-formatted string.

func (*SyncTimeline) FileSkipped added in v0.1.9

func (tl *SyncTimeline) FileSkipped()

FileSkipped records an intentionally skipped upload after user confirmation.

func (*SyncTimeline) FileUploaded added in v0.1.3

func (tl *SyncTimeline) FileUploaded()

FileUploaded records a successful upload and increments the category counter.

func (*SyncTimeline) Footer added in v0.1.3

func (tl *SyncTimeline) Footer()

Footer renders the closing success summary line. Idempotent.

func (*SyncTimeline) Header added in v0.1.3

func (tl *SyncTimeline) Header()

Header prints the opening line and starts the animation loop.

func (*SyncTimeline) NothingToDo added in v0.1.3

func (tl *SyncTimeline) NothingToDo()

NothingToDo renders a message when there are no files to process.

func (*SyncTimeline) PreparePrompt added in v0.1.9

func (tl *SyncTimeline) PreparePrompt()

PreparePrompt clears live spinner output before a blocking prompt is printed.

func (*SyncTimeline) RenderPlan added in v0.1.3

func (tl *SyncTimeline) RenderPlan(categories []SyncCategory, deleteCount int)

RenderPlan displays the dry-run plan without executing uploads.

func (*SyncTimeline) SetActiveDelete added in v0.1.3

func (tl *SyncTimeline) SetActiveDelete(displayPath string)

SetActiveDelete updates the spinner to show the file being deleted.

func (*SyncTimeline) SetActiveFile added in v0.1.3

func (tl *SyncTimeline) SetActiveFile(displayPath string)

SetActiveFile updates the spinner to show the file currently being uploaded.

func (*SyncTimeline) SetCategories added in v0.1.3

func (tl *SyncTimeline) SetCategories(categories []SyncCategory)

SetCategories initializes the category list and computes label alignment.

func (*SyncTimeline) StartCategory added in v0.1.3

func (tl *SyncTimeline) StartCategory(index int)

StartCategory begins a new active category with a spinner.

func (*SyncTimeline) StartDeletes added in v0.1.3

func (tl *SyncTimeline) StartDeletes(total int)

StartDeletes begins the delete phase with a spinner.

type Table

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

Table renders aligned, borderless columns for human output.

Widths are measured in terminal cells (East Asian wide characters and emoji count as two, ANSI escapes as zero), so mixed-script rows stay aligned. With a max width set (stdout is a terminal and --wide is off), rows wider than the terminal are fitted by truncating free-text columns with an ellipsis (see fitColumns); piped output is never truncated.

func NewTable

func NewTable(out io.Writer, headers ...string) *Table

NewTable creates a new table writer. Rows are buffered until Flush.

func (*Table) Flush

func (t *Table) Flush() error

Flush writes the table to the underlying writer.

func (*Table) Row

func (t *Table) Row(values ...any)

Row adds a row to the table.

func (*Table) SetEllipsis added in v0.5.0

func (t *Table) SetEllipsis(ellipsis string)

SetEllipsis sets the truncation marker.

func (*Table) SetMaxWidth added in v0.5.0

func (t *Table) SetMaxWidth(width int)

SetMaxWidth fits rows to width terminal cells; 0 disables truncation.

type Task

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

Task represents one in-flight spinner, counter, or transfer.

func (*Task) Add

func (t *Task) Add(n int64)

Add advances the task by n units/bytes.

func (*Task) Current

func (t *Task) Current() int64

Current returns the current progress amount.

func (*Task) Done

func (t *Task) Done(status string)

Done finalizes the task with an optional status label.

func (*Task) Fail

func (t *Task) Fail(err error)

Fail finalizes the task as failed.

func (*Task) ResetProgress

func (t *Task) ResetProgress()

ResetProgress resets current progress and elapsed timing for a retry/replay attempt.

func (*Task) SetLabel

func (t *Task) SetLabel(label string)

SetLabel updates the task label.

func (*Task) SetTotal

func (t *Task) SetTotal(total int64)

SetTotal updates the known total.

func (*Task) WrapReadCloser

func (t *Task) WrapReadCloser(reader io.ReadCloser) io.ReadCloser

WrapReadCloser increments the task as data is read and preserves Close.

func (*Task) WrapReader

func (t *Task) WrapReader(reader io.Reader) io.Reader

WrapReader increments the task as data is read.

func (*Task) WrapWriter

func (t *Task) WrapWriter(writer io.Writer) io.Writer

WrapWriter increments the task as data is written.

type Theme added in v0.5.0

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

Theme styles text with the CLI's semantic palette, downsampled to the stream's color profile. The zero value (or a Theme built with color off) returns text unchanged, so callers never need their own "if color" branches.

func NewTheme added in v0.5.0

func NewTheme(profile termenv.Profile) Theme

NewTheme builds a theme for a termenv profile with the line-output palette: light when NIMBU_THEME=light or COLORFGBG reports a light background, dark otherwise; termenv.Ascii disables color.

func NewThemeFor added in v0.5.0

func NewThemeFor(profile termenv.Profile, dark bool) Theme

NewThemeFor builds a theme for a profile and a known terminal background.

func (Theme) Accent added in v0.5.0

func (t Theme) Accent(s string) string

Accent marks active work such as spinners (bold blue).

func (Theme) Border added in v0.5.0

func (t Theme) Border(s string) string

Border colors frames and separators.

func (Theme) Enabled added in v0.5.0

func (t Theme) Enabled() bool

Enabled reports whether the theme emits escape sequences.

func (Theme) Error added in v0.5.0

func (t Theme) Error(s string) string

Error marks failures (bold red).

func (Theme) Faint added in v0.5.0

func (t Theme) Faint(s string) string

Faint renders text with the terminal's faint attribute.

func (Theme) Muted added in v0.5.0

func (t Theme) Muted(s string) string

Muted de-emphasizes secondary text such as rails, hints and footers.

func (Theme) Paint added in v0.5.0

func (t Theme) Paint(s, hex string, bold bool) string

Paint styles s with a hex color (empty keeps the terminal's foreground), optionally bold, downsampled to the theme's profile.

func (Theme) Palette added in v0.5.0

func (t Theme) Palette() Palette

Palette returns the theme's palette (the dark one for a disabled theme).

func (Theme) Path added in v0.5.0

func (t Theme) Path(s string) string

Path highlights file paths and identifiers.

func (Theme) Strong added in v0.5.0

func (t Theme) Strong(s string) string

Strong emphasizes headings and names. It only adds bold and keeps the terminal's own foreground, so it stays readable on light and dark themes.

func (Theme) Success added in v0.5.0

func (t Theme) Success(s string) string

Success marks completed work (bold green).

func (Theme) Warning added in v0.5.0

func (t Theme) Warning(s string) string

Warning marks warnings and dry-run accents (bold amber).

func (Theme) WarningText added in v0.5.0

func (t Theme) WarningText(s string) string

WarningText colors longer warning prose without bold.

type Writer

type Writer struct {
	Out    io.Writer
	Err    io.Writer
	Mode   Mode
	NoTTY  bool
	Color  string // "auto", "always", "never"
	NoSpin bool   // Disable spinner
	Wide   bool   // Never fit tables to the terminal width
}

Writer holds output configuration.

func DefaultWriter

func DefaultWriter() *Writer

DefaultWriter returns a writer with default settings.

func WriterFromContext

func WriterFromContext(ctx context.Context) *Writer

WriterFromContext extracts writer from context.

func (*Writer) ErrAnimated added in v0.5.0

func (w *Writer) ErrAnimated() bool

ErrAnimated reports whether stderr may carry live, cursor-moving chrome (spinners, redrawn lines): stderr must be a terminal, progress must not be disabled, and TERM must not be "dumb".

func (*Writer) ErrColorProfile added in v0.5.0

func (w *Writer) ErrColorProfile() termenv.Profile

ErrColorProfile returns the termenv profile for stderr.

func (*Writer) ErrIsTTY

func (w *Writer) ErrIsTTY() bool

ErrIsTTY returns true if stderr is a terminal.

func (*Writer) ErrTheme added in v0.5.0

func (w *Writer) ErrTheme() Theme

ErrTheme returns the theme for chrome written to stderr.

func (*Writer) ErrUseColor added in v0.5.0

func (w *Writer) ErrUseColor() bool

ErrUseColor reports whether stderr should be colored. Use this for chrome (progress, timelines, banners, prompts) that is written to w.Err.

func (*Writer) Glyphs added in v0.5.0

func (w *Writer) Glyphs() Glyphs

Glyphs returns the glyph set for this environment.

func (*Writer) IsTTY

func (w *Writer) IsTTY() bool

IsTTY returns true if stdout is a terminal.

func (*Writer) OutColorProfile added in v0.5.0

func (w *Writer) OutColorProfile() termenv.Profile

OutColorProfile returns the termenv profile for stdout: Ascii when color is off, otherwise the richest profile the environment advertises.

func (*Writer) OutTheme added in v0.5.0

func (w *Writer) OutTheme() Theme

OutTheme returns the theme for content written to stdout.

func (*Writer) UseColor

func (w *Writer) UseColor() bool

UseColor reports whether stdout should be colored. Machine output (--json, --plain) is data for parsers, so it stays uncolored on a terminal too; only an explicit --color=always (or NIMBU_COLOR=always) colors it, the same rule help follows.

Jump to

Keyboard shortcuts

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