manifest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(m Manifest, path string) error

Save serializes m to YAML and writes it to path.

Types

type Manifest

type Manifest struct {
	Name         string            `yaml:"name"`
	Version      string            `yaml:"version"`
	Description  string            `yaml:"description,omitempty"`
	Entrypoint   string            `yaml:"entrypoint"`
	Dependencies map[string]string `yaml:"dependencies,omitempty"`
	// Outputs maps target filenames to glob patterns of dep names to include.
	// Example: "CLAUDE.md": "*"  or  ".claude/SKILL.md": "github.com/alice/*"
	Outputs    map[string]string `yaml:"outputs,omitempty"`
	Tags       []string          `yaml:"tags,omitempty"`
	ToolCompat []string          `yaml:"tool_compat,omitempty"`
}

Manifest is the parsed representation of a project's melon.yml.

func Load

func Load(path string) (Manifest, error)

Load reads and parses a melon.yml file at the given path.

Jump to

Keyboard shortcuts

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