Documentation
¶
Overview ¶
Package lookup owns the YAML description maps and eager initialization for all embedded text lookups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // CommandsMap maps command description keys to their YAML entries. CommandsMap map[string]commandEntry // FlagsMap maps flag description keys to their YAML entries. FlagsMap map[string]commandEntry // TextMap maps general text description keys to their YAML entries. TextMap map[string]commandEntry // ExamplesMap maps example description keys to their YAML entries. ExamplesMap map[string]commandEntry )
Functions ¶
func Init ¶
func Init()
Init loads all embedded YAML description maps. Call once from main() before building the command tree. Tests that need descriptions must call Init() in their setup.
func PermAllowListDefault ¶
func PermAllowListDefault() []string
PermAllowListDefault returns the default allow permissions for ctx commands and skills, parsed from the embedded permissions/allow.txt.
func PermDenyListDefault ¶
func PermDenyListDefault() []string
PermDenyListDefault returns the default deny permissions that block dangerous operations, parsed from the embedded permissions/deny.txt.
Types ¶
type ConfigPattern ¶
ConfigPattern pairs a glob pattern with its localizable topic description.
func ConfigPatterns ¶
func ConfigPatterns() []ConfigPattern
ConfigPatterns returns config file patterns with resolved topic descriptions.