Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LoadExtensionManifestFn = loadExtensionManifest
Functions ¶
This section is empty.
Types ¶
type ExtensionManifest ¶
type ExtensionManifest struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Author string `yaml:"author"`
Repository string `yaml:"repository"`
Entry string `yaml:"entry"`
Hooks []string `yaml:"hooks,omitempty"`
}
ExtensionManifest defines the metadata and entry point for a sley extension. This structure is expected to be defined in a extension's `extension.yaml` file.
All fields except Hooks are required: - Name: A unique extension identifier (e.g. "changelog-generator") - Version: The extension's version (e.g. "0.1.0") - Description: A brief explanation of what the extension does - Author: Name or handle of the extension author - Repository: URL of the extension's source repository - Entry: Path to the executable script or binary (relative to extension directory) - Hooks: List of hook points this extension supports (optional)
func (*ExtensionManifest) ValidateManifest ¶
func (m *ExtensionManifest) ValidateManifest() error
ValidateManifest ensures all required fields are present. Returns an error listing all missing fields if validation fails.
type ManifestNotFoundError ¶ added in v0.10.0
ManifestNotFoundError indicates that an extension.yaml file is missing
func (*ManifestNotFoundError) Error ¶ added in v0.10.0
func (e *ManifestNotFoundError) Error() string
func (*ManifestNotFoundError) Suggestion ¶ added in v0.10.0
func (e *ManifestNotFoundError) Suggestion() string
Suggestion returns a helpful message with a manifest template
type ManifestParseError ¶ added in v0.10.0
ManifestParseError indicates that a manifest file has invalid YAML or structure
func (*ManifestParseError) Error ¶ added in v0.10.0
func (e *ManifestParseError) Error() string
func (*ManifestParseError) Unwrap ¶ added in v0.10.0
func (e *ManifestParseError) Unwrap() error
Unwrap returns the underlying error
type ManifestValidationError ¶ added in v0.10.0
ManifestValidationError indicates that required fields are missing
func (*ManifestValidationError) Error ¶ added in v0.10.0
func (e *ManifestValidationError) Error() string
func (*ManifestValidationError) Suggestion ¶ added in v0.10.0
func (e *ManifestValidationError) Suggestion() string
Suggestion returns guidance on fixing validation errors