cmd

package
v0.0.0-...-19d10a0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package cmd registers lazynf's Cobra commands and global flags.

Commands here are thin: parse flags, build dependencies, call into internal/fonts, render results via internal/ui.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(err error) int

Exit is the standard error-to-exit-code translator used by main.

func NewRoot

func NewRoot(version string) *cobra.Command

NewRoot builds the root command tree.

func ResetTestOverrides

func ResetTestOverrides()

ResetTestOverrides clears all test hooks (call from defer).

func SetTestAssetURLBase

func SetTestAssetURLBase(u string)

SetTestAssetURLBase overrides the release-asset download base URL.

func SetTestGitHubBaseURL

func SetTestGitHubBaseURL(u string)

SetTestGitHubBaseURL points the github.Client at a custom base URL.

func SetTestRefresher

func SetTestRefresher(r fontcache.Refresher)

SetTestRefresher swaps the fontcache.Refresher (e.g. with a FakeRefresher).

func Verbosity

func Verbosity() *ui.Verbosity

Verbosity returns a *ui.Verbosity matching the global flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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