Documentation
¶
Overview ¶
Package ctximport provides terminal output functions for memory import operations.
Index ¶
- func EntryAdded(cmd *cobra.Command, title, targetFile string)
- func EntryClassified(cmd *cobra.Command, title, targetFile string, keywords []string)
- func EntrySkipped(cmd *cobra.Command, title string)
- func ErrPromote(cmd *cobra.Command, targetFile string, cause error)
- func NoEntries(cmd *cobra.Command, filename string)
- func ScanHeader(cmd *cobra.Command, filename string, count int)
- func Summary(cmd *cobra.Command, result entity.ImportResult, dryRun bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntryAdded ¶
EntryAdded prints a promoted entry block: title, target file, and a trailing blank line.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- title: truncated entry title.
- targetFile: destination filename.
func EntryClassified ¶
EntryClassified prints a classified entry block (dry run): title, target file with keywords, and a trailing blank line.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- title: truncated entry title.
- targetFile: destination filename.
- keywords: matched classification keywords.
func EntrySkipped ¶
EntrySkipped prints a skipped entry block: title, "skip" classification, and a trailing blank line.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- title: truncated entry title.
func ErrPromote ¶
ErrPromote prints a promotion error to stderr.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- targetFile: destination filename.
- cause: the promotion error.
func NoEntries ¶
NoEntries prints that no entries were found in the source file.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- filename: source file name (e.g. "MEMORY.md").
func ScanHeader ¶
ScanHeader prints the scanning header: source name, entry count, and a trailing blank line.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- filename: source file name being scanned.
- count: number of entries discovered.
func Summary ¶
func Summary(cmd *cobra.Command, result entity.ImportResult, dryRun bool)
Summary prints the full import summary block: total with per-type breakdown, skipped count, and duplicate count.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- counts: aggregate import counters.
- dryRun: whether this was a dry run.
Types ¶
This section is empty.