core

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core provides helper functions for the add command.

This package contains entry formatting, validation, content extraction, and file insertion logic used by the add command's Run function.

Directories

Path Synopsis
Package entry provides file-type predicates for routing add entries to the correct context file.
Package entry provides file-type predicates for routing add entries to the correct context file.
Package example provides usage examples shown when the add command receives no content for a given entry type.
Package example provides usage examples shown when the add command receives no content for a given entry type.
Package extract retrieves entry content from command arguments, files, or stdin for the add command.
Package extract retrieves entry content from command arguments, files, or stdin for the add command.
Package format builds timestamped Markdown entries for decisions, learnings, tasks, and conventions.
Package format builds timestamped Markdown entries for decisions, learnings, tasks, and conventions.
Package insert places formatted entries into context file content at the correct position based on entry type and section headers.
Package insert places formatted entries into context file content at the correct position based on entry type and section headers.
Package normalize ensures section headings and other user input have the correct Markdown format before insertion.
Package normalize ensures section headings and other user input have the correct Markdown format before insertion.

Jump to

Keyboard shortcuts

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