extensions

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL