publish

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

Documentation

Overview

Package publish implements the ctx memory publish subcommand.

It pushes curated .context/ content into MEMORY.md so the agent sees structured project context on session start.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the memory publish subcommand.

Returns:

  • *cobra.Command: command for publishing curated context to MEMORY.md.

func Run

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

Run selects high-value context, formats it, and writes a marked block into MEMORY.md. In dry-run mode it reports what would be published.

Parameters:

  • cmd: Cobra command for output routing.
  • budget: maximum line count for the published block.
  • dryRun: when true, show the plan without writing.

Returns:

  • error: on discovery, selection, or publish failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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