manifest

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPath added in v0.2.2

func FindPath(dir string) string

FindPath returns the path to the manifest file in dir. It prefers melon.yaml but falls back to melon.yml for backwards compatibility. When neither file exists it returns the canonical melon.yaml path so callers receive a clear "file not found" error on Load.

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.yaml.

func Load

func Load(path string) (Manifest, error)

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

Jump to

Keyboard shortcuts

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