initialize

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 initialize provides terminal output functions for the initialize command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(cmd *cobra.Command, path string)

Backup reports a backup file created.

Parameters:

  • cmd: Cobra command for output
  • path: backup file path

func Created

func Created(cmd *cobra.Command, path string)

Created reports a file created during init.

Parameters:

  • cmd: Cobra command for output
  • path: created file path

func CreatedDir

func CreatedDir(cmd *cobra.Command, dir string)

CreatedDir reports a directory created during init.

Parameters:

  • cmd: Cobra command for output
  • dir: directory name

func CreatedWith

func CreatedWith(cmd *cobra.Command, path, qualifier string)

CreatedWith reports a file created with a qualifier (e.g. " (ralph mode)").

Parameters:

  • cmd: Cobra command for output
  • path: created file path
  • qualifier: additional info appended after the path

func CtxContentExists

func CtxContentExists(cmd *cobra.Command, path string)

CtxContentExists reports a file skipped because ctx content exists.

Parameters:

  • cmd: Cobra command for output
  • path: skipped file path

func ErrCtxNotInPath

func ErrCtxNotInPath(cmd *cobra.Command)

ErrCtxNotInPath prints a multi-line diagnostic to stderr explaining that ctx is not in PATH, with installation instructions.

Parameters:

  • cmd: Cobra command whose stderr stream receives the output. Nil is a no-op.

func FileExistsNoCtx

func FileExistsNoCtx(cmd *cobra.Command, path string)

FileExistsNoCtx reports a file exists without ctx content.

Parameters:

  • cmd: Cobra command for output
  • path: file path

func InfoAborted

func InfoAborted(cmd *cobra.Command)

InfoAborted reports that the user cancelled the init operation.

Parameters:

  • cmd: Cobra command for output

func InfoCreatingRootFiles

func InfoCreatingRootFiles(cmd *cobra.Command)

InfoCreatingRootFiles prints the heading before root file creation.

Parameters:

  • cmd: Cobra command for output

func InfoExistsSkipped

func InfoExistsSkipped(cmd *cobra.Command, name string)

InfoExistsSkipped reports a template file skipped because it exists.

Parameters:

  • cmd: Cobra command for output
  • name: the template filename that was skipped

func InfoFileCreated

func InfoFileCreated(cmd *cobra.Command, name string)

InfoFileCreated reports a template file that was created.

Parameters:

  • cmd: Cobra command for output
  • name: the template filename that was created

func InfoGettingStartedSaved

func InfoGettingStartedSaved(cmd *cobra.Command, path string)

InfoGettingStartedSaved reports that the quick-start reference file was written.

Parameters:

  • cmd: Cobra command for output
  • path: File path that was written

func InfoGitignoreReview

func InfoGitignoreReview(cmd *cobra.Command)

InfoGitignoreReview hints how to review changes.

Parameters:

  • cmd: Cobra command for output

func InfoGitignoreUpdated

func InfoGitignoreUpdated(cmd *cobra.Command, count int)

InfoGitignoreUpdated reports .gitignore entries were added.

Parameters:

  • cmd: Cobra command for output
  • count: number of entries added

func InfoInitialized

func InfoInitialized(cmd *cobra.Command, contextDir string)

InfoInitialized reports successful context directory initialization.

Parameters:

  • cmd: Cobra command for output
  • contextDir: the path to the initialized .context/ directory

func InfoNextSteps

func InfoNextSteps(cmd *cobra.Command)

InfoNextSteps prints the post-init guidance block.

Parameters:

  • cmd: Cobra command for output

func InfoOverwritePrompt

func InfoOverwritePrompt(cmd *cobra.Command, contextDir string)

InfoOverwritePrompt prints the overwrite confirmation prompt.

Parameters:

  • cmd: Cobra command for output
  • contextDir: path to the existing .context/ directory

func InfoScratchpadKeyCreated

func InfoScratchpadKeyCreated(cmd *cobra.Command, keyPath string)

InfoScratchpadKeyCreated reports a scratchpad key was generated.

Parameters:

  • cmd: Cobra command for output
  • keyPath: the path where the key was saved

func InfoScratchpadNoKey

func InfoScratchpadNoKey(cmd *cobra.Command, keyPath string)

InfoScratchpadNoKey warns about a missing key for an encrypted scratchpad.

Parameters:

  • cmd: Cobra command for output
  • keyPath: the expected key path

func InfoScratchpadPlaintext

func InfoScratchpadPlaintext(cmd *cobra.Command, path string)

InfoScratchpadPlaintext reports a plaintext scratchpad was created.

Parameters:

  • cmd: Cobra command for output
  • path: the scratchpad file path

func InfoSettingUpPermissions

func InfoSettingUpPermissions(cmd *cobra.Command)

InfoSettingUpPermissions prints the heading before permissions setup.

Parameters:

  • cmd: Cobra command for output

func InfoWarnNonFatal

func InfoWarnNonFatal(cmd *cobra.Command, label string, err error)

InfoWarnNonFatal reports a non-fatal warning during init.

Parameters:

  • cmd: Cobra command for output
  • label: short description of what failed (e.g. "CLAUDE.md")
  • err: the non-fatal error

func InfoWorkflowTips

func InfoWorkflowTips(cmd *cobra.Command)

InfoWorkflowTips prints the workflow tips block showing key skills and the ceremony loop.

Parameters:

  • cmd: Cobra command for output

func MakefileAppended

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

MakefileAppended reports an include appended to Makefile.

Parameters:

  • cmd: Cobra command for output
  • filename: included filename

func MakefileCreated

func MakefileCreated(cmd *cobra.Command)

MakefileCreated reports a new Makefile created with ctx include.

Parameters:

  • cmd: Cobra command for output

func MakefileIncludes

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

MakefileIncludes reports Makefile already includes the directive.

Parameters:

  • cmd: Cobra command for output
  • filename: included filename

func MergePrompt

func MergePrompt(cmd *cobra.Command, prompt string)

MergePrompt prints a merge confirmation prompt with y/N suffix.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • prompt: The confirmation prompt text.

func Merged

func Merged(cmd *cobra.Command, path string)

Merged reports a file merged during init.

Parameters:

  • cmd: Cobra command for output
  • path: merged file path

func NoChanges

func NoChanges(cmd *cobra.Command, path string)

NoChanges reports a settings file with no changes needed.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PermsAllow

func PermsAllow(cmd *cobra.Command, path string)

PermsAllow reports ctx permissions added.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PermsAllowDeny

func PermsAllowDeny(cmd *cobra.Command, path string)

PermsAllowDeny reports allow+deny permissions added.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PermsDeduped

func PermsDeduped(cmd *cobra.Command, path string)

PermsDeduped reports duplicate permissions removed.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PermsDeny

func PermsDeny(cmd *cobra.Command, path string)

PermsDeny reports deny permissions added.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PermsMergedDeduped

func PermsMergedDeduped(cmd *cobra.Command, path string)

PermsMergedDeduped reports permissions merged and deduped.

Parameters:

  • cmd: Cobra command for output
  • path: settings file path

func PlanMergePrompt

func PlanMergePrompt(cmd *cobra.Command)

PlanMergePrompt prints the interactive merge confirmation prompt.

Parameters:

  • cmd: Cobra command for output

func PluginAlreadyEnabled

func PluginAlreadyEnabled(cmd *cobra.Command)

PluginAlreadyEnabled reports plugin is already enabled globally.

Parameters:

  • cmd: Cobra command for output

func PluginEnabled

func PluginEnabled(cmd *cobra.Command, settingsPath string)

PluginEnabled reports plugin enabled globally.

Parameters:

  • cmd: Cobra command for output
  • settingsPath: path to the settings file

func PluginSkipped

func PluginSkipped(cmd *cobra.Command)

PluginSkipped reports plugin enablement was skipped.

Parameters:

  • cmd: Cobra command for output

func Skipped

func Skipped(cmd *cobra.Command, path string)

Skipped reports a file skipped because it already exists.

Parameters:

  • cmd: Cobra command for output
  • path: skipped file path

func SkippedDir

func SkippedDir(cmd *cobra.Command, dir string)

SkippedDir reports a directory skipped because it exists.

Parameters:

  • cmd: Cobra command for output
  • dir: directory name

func SkippedPlain

func SkippedPlain(cmd *cobra.Command, path string)

SkippedPlain reports a file skipped without detail.

Parameters:

  • cmd: Cobra command for output
  • path: skipped file path

func UpdatedSection

func UpdatedSection(cmd *cobra.Command, path, textKey string)

UpdatedSection reports a file whose marked section was updated.

Parameters:

  • cmd: Cobra command for output
  • path: updated file path
  • textKey: text descriptor key for the update message

Types

This section is empty.

Jump to

Keyboard shortcuts

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