ctximport

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: 7 Imported by: 0

Documentation

Overview

Package ctximport provides terminal output functions for memory import operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryAdded

func EntryAdded(cmd *cobra.Command, title, targetFile string)

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

func EntryClassified(
	cmd *cobra.Command, title, targetFile string, keywords []string,
)

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

func EntrySkipped(cmd *cobra.Command, title string)

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

func ErrPromote(cmd *cobra.Command, targetFile string, cause error)

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

func NoEntries(cmd *cobra.Command, filename string)

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

func ScanHeader(cmd *cobra.Command, filename string, count int)

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.

Jump to

Keyboard shortcuts

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