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 ¶
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.
Click to show internal directories.
Click to hide internal directories.