prompt

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

Documentation

Overview

Package prompt creates or merges PROMPT.md with ctx system prompt templates during initialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePromptTemplates

func CreatePromptTemplates(
	cmd *cobra.Command, contextDir string, force bool,
) error

CreatePromptTemplates creates prompt template files in .context/prompts/.

Parameters:

  • cmd: Cobra command for output
  • contextDir: The .context/ directory path
  • force: If true, overwrite existing files

Returns:

  • error: Non-nil if directory creation or file write fails

func HandlePromptMd

func HandlePromptMd(cmd *cobra.Command, force, autoMerge, ralph bool) error

HandlePromptMd creates or merges PROMPT.md with ctx content.

Parameters:

  • cmd: Cobra command for output
  • force: If true, overwrite the existing prompt section
  • autoMerge: If true, skip interactive confirmation
  • ralph: If true, use ralph mode template

Returns:

  • error: Non-nil if file operations fail

Types

This section is empty.

Jump to

Keyboard shortcuts

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