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