Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLatestLocalVersion ¶ added in v1.0.1
FindLatestLocalVersion scans a theme directory and returns the highest semver version found. Falls back to "latest" if only latest.toml exists (backward compatibility). Returns error if no .toml files are found.
Types ¶
type Theme ¶
type Theme struct {
Author string
Name string
Version string // Optional, defaults to "latest"
VersionExplicit bool // True if version was explicitly specified in the identifier
}
func ParseIdentifier ¶
ParseIdentifier parses "alice/rainbow@1.2", "alice/rainbow@latest", or "alice/rainbow"
type ValidationResult ¶ added in v1.0.0
ValidationResult contains the validation outcome
func ValidateConfig ¶
func ValidateConfig(path string) (ValidationResult, error)
ValidateConfig checks if the TOML is valid and identifies security concerns
func ValidateConfigContent ¶
func ValidateConfigContent(content string) (ValidationResult, error)
ValidateConfigContent validates TOML content and returns validation result Custom commands are detected but NOT blocked - caller decides how to handle
Click to show internal directories.
Click to hide internal directories.