cli

package
v1.5.2-macos.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 3 Imported by: 1 module, 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 owns common construction of localized Cobra command roots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoot

func NewRoot(use string, manager *localization.Manager, short, long localization.Message) *cobra.Command

NewRoot constructs the shared localized Cobra root. Each binary owns its subcommands and runtime context; only root identity and text live here.

func Render

func Render(manager *localization.Manager, message localization.Message) string

Render returns a localized command message, retaining its fallback when localization is unavailable. It is safe to use during command construction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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