render

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 render formats change summaries into human-readable Markdown output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Changes

func Changes(
	refLabel string, ctxChanges []entity.ContextChange, code entity.CodeSummary,
) string

Changes renders the full CLI output for `ctx changes`.

Parameters:

  • refLabel: Human-readable reference time label
  • ctxChanges: Context file changes since reference time
  • code: Code change summary since reference time

Returns:

  • string: Formatted Markdown output

func ChangesForHook

func ChangesForHook(
	refLabel string, ctxChanges []entity.ContextChange, code entity.CodeSummary,
) string

ChangesForHook renders a compact summary for hook injection.

Parameters:

  • refLabel: Human-readable reference time label
  • ctxChanges: Context file changes since reference time
  • code: Code change summary since reference time

Returns:

  • string: Compact single-line summary, or empty if no changes

Types

This section is empty.

Jump to

Keyboard shortcuts

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