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

Documentation

Overview

Package publish provides terminal output functions for the publish command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishDone

func PublishDone(cmd *cobra.Command)

PublishDone prints the success message with marker info.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func PublishDryRun

func PublishDryRun(cmd *cobra.Command)

PublishDryRun prints the dry-run notice.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func PublishPlan

func PublishPlan(
	cmd *cobra.Command,
	budget, tasks, decisions, conventions, learnings, totalLines int,
)

PublishPlan prints the full publish plan: header, source files, budget, per-file counts, and total.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • budget: maximum line count for the published block.
  • tasks: number of pending tasks selected.
  • decisions: number of recent decisions selected.
  • conventions: number of key conventions selected.
  • learnings: number of recent learnings selected.
  • totalLines: total lines in the published block.

func UnpublishDone

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

UnpublishDone prints that the published block was removed.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • filename: source file name (e.g. "MEMORY.md").

func UnpublishNotFound

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

UnpublishNotFound prints that no published block was found.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • filename: source file name (e.g. "MEMORY.md").

Types

This section is empty.

Jump to

Keyboard shortcuts

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