Documentation
¶
Overview ¶
Package tpl provides embedded template files for initializing .context/ directories.
Index ¶
- Variables
- func ClaudeCommandByName(name string) ([]byte, error)
- func ClaudeHookByFileName(name string) ([]byte, error)
- func Entry(name string) ([]byte, error)
- func List() ([]string, error)
- func ListClaudeCommands() ([]string, error)
- func ListEntry() ([]string, error)
- func Template(name string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
Functions ¶
func ClaudeCommandByName ¶
ClaudeCommandByName reads a Claude Code slash command template by name.
Parameters:
- name: Command filename (e.g., "ctx-status.md")
Returns:
- []byte: Command template content from claude/commands/
- error: Non-nil if the file not found or read fails
func ClaudeHookByFileName ¶
ClaudeHookByFileName reads a Claude Code hook script by name.
Parameters:
- name: Hook script filename (e.g., "session-end-auto-save.sh")
Returns:
- []byte: Hook script content from claude/hooks/
- error: Non-nil if the file is not found or read fails
func Entry ¶
Entry reads an entry template by name.
Parameters:
- name: Template filename (e.g., "decision.md")
Returns:
- []byte: Template content from entry-templates/
- error: Non-nil if the file is not found or read fails
func List ¶
List returns all available template file names.
Returns:
- []string: List of template filenames in the root templates directory
- error: Non-nil if directory read fails
func ListClaudeCommands ¶
ListClaudeCommands returns available Claude Code slash command file names.
Returns:
- []string: List of command filenames in claude/commands/
- error: Non-nil if directory read fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.