layout

package
v0.14.9 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package layout owns the configuration directory names Wingman reads and the order they resolve in, so skills, plugins and agent definitions cannot drift apart. Callers scan the returned roots in order and keep the first entry for a given name; project roots always precede personal ones.

Index

Constants

This section is empty.

Variables

View Source
var Dirs = []string{".wingman", ".agents", ".claude"}

Dirs are the configuration directory names, highest precedence first.

Functions

func PersonalRoots

func PersonalRoots(name string) []string

PersonalRoots returns the per-user directories holding name, in precedence order. It returns nil when the home directory cannot be determined.

func ProjectRoots

func ProjectRoots(workDir, name string) []string

ProjectRoots returns the per-project directories holding name, in precedence order.

func Roots

func Roots(workDir, name string) []string

Roots returns the project roots followed by the personal roots, which is the full precedence order for name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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