projectfile

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Filename = ".scribe.yaml"

Filename is the conventional name for a Scribe project file.

Variables

This section is empty.

Functions

func AddUnique added in v1.6.0

func AddUnique(list []string, name string) ([]string, bool)

AddUnique appends name to list when it is not already present.

func Find

func Find(startDir string) (string, error)

Find walks upward from startDir looking for .scribe.yaml. It returns an empty string when no project file exists.

func RemoveName added in v1.6.0

func RemoveName(list []string, name string) ([]string, bool)

RemoveName removes all exact matches for name from list.

func Save

func Save(path string, pf *ProjectFile) error

Save writes a ProjectFile to path atomically.

Types

type ProjectFile

type ProjectFile struct {
	Kits       []string `yaml:"kits,omitempty"`
	Snippets   []string `yaml:"snippets,omitempty"`
	MCP        []string `yaml:"mcp,omitempty"`
	MCPServers []string `yaml:"mcp_servers,omitempty"`
	Add        []string `yaml:"add,omitempty"`
	Remove     []string `yaml:"remove,omitempty"`
}

ProjectFile declares which Scribe assets a project wants projected locally.

func Load

func Load(path string) (*ProjectFile, error)

Load reads a .scribe.yaml file from path. Missing or empty files are treated as no Scribe activity for the project.

func (*ProjectFile) MCPServerNames

func (pf *ProjectFile) MCPServerNames() []string

Jump to

Keyboard shortcuts

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