why

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner(cmd *cobra.Command)

Banner prints the ctx ASCII art banner for the why menu.

Parameters:

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

func Content

func Content(cmd *cobra.Command, text string)

Content prints document content to stdout.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • text: Pre-processed document text.
func MenuItem(cmd *cobra.Command, index int, label string)

MenuItem prints a numbered menu item.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • index: 1-based menu index.
  • label: display label for the document.
func MenuPrompt(cmd *cobra.Command)

MenuPrompt prints the selection prompt.

Parameters:

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

func Separator

func Separator(cmd *cobra.Command)

Separator prints a blank line for visual separation.

Parameters:

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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