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.