templates

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package templates exposes the deft template files as build-time embedded assets. Embedding from the templates/ directory keeps templates/agents-entry.md as the single canonical source of truth for the AGENTS.md body that the Go installer, task agents:init, and QUICK-START.md all emit.

Editing templates/agents-entry.md alone is sufficient to change what the installer writes -- no Go file edit required (closes #636).

Index

Constants

This section is empty.

Variables

View Source
var AgentsConsumerHeader string

AgentsConsumerHeader is the bounded unmanaged AGENTS.md header scaffold written above the managed section on fresh consumer installs (#2065 Option A).

View Source
var AgentsEntry string

AgentsEntry is the canonical AGENTS.md entry body written into consumer projects by cmd/deft-install. It is embedded at build time from templates/agents-entry.md via //go:embed so the installer can never drift from the template on disk. The accompanying drift test in embed_test.go asserts that the embedded bytes equal the file on disk so CI fails if the embed target is removed or the path is reorganised.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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