importer

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

Documentation

Overview

Package importer implements the ctx memory import subcommand.

It classifies and promotes MEMORY.md entries into structured .context/ files using heuristic keyword matching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the memory import subcommand.

Returns:

  • *cobra.Command: command for importing MEMORY.md entries into .context/ files.

func Run

func Run(cmd *cobra.Command, dryRun bool) error

Run parses MEMORY.md entries, classifies them by heuristic keyword matching, deduplicates against prior imports, and promotes new entries into the appropriate .context/ files.

Parameters:

  • cmd: Cobra command for output routing.
  • dryRun: when true, show the classification plan without writing.

Returns:

  • error: on discovery, read, state, or promotion failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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