bootstrap

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

Documentation

Overview

Package bootstrap provides formatted output helpers for the bootstrap command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

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

Dir prints the context directory path (quiet mode). Nil cmd is a no-op.

Parameters:

  • cmd: Cobra command for output
  • dir: absolute path to the context directory

func JSON

func JSON(
	cmd *cobra.Command,
	dir string,
	files []string,
	rules []string,
	nextSteps []string,
	warning string,
)

JSON prints the JSON bootstrap output to stdout.

If encoding fails, a structured JSON error object is printed instead.

Parameters:

  • cmd: Cobra command whose stdout stream receives the output.
  • dir: absolute path to the context directory.
  • files: list of context file names.
  • rules: list of rule strings.
  • nextSteps: list of next-step strings.
  • warning: optional warning string (empty string omits warnings).

func Text

func Text(
	cmd *cobra.Command,
	dir string,
	fileList string,
	rules []string,
	nextSteps []string,
	warning string,
)

Text prints the human-readable bootstrap output to stdout.

Parameters:

  • cmd: Cobra command whose stdout stream receives the output.
  • dir: absolute path to the context directory.
  • fileList: pre-formatted, wrapped file list string.
  • rules: ordered rule strings (numbered automatically).
  • nextSteps: ordered next-step strings (numbered automatically).
  • warning: optional warning string (empty string skips).

Types

This section is empty.

Jump to

Keyboard shortcuts

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