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

Documentation

Overview

Package prompt provides terminal output functions for the prompt command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptCreated

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

PromptCreated prints the confirmation after creating a prompt template.

Parameters:

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

func PromptItem

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

PromptItem prints a single prompt name in the list.

Parameters:

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

func PromptNone

func PromptNone(cmd *cobra.Command)

PromptNone prints the message when no prompts are found.

Parameters:

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

func Removed

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

Removed prints the confirmation after removing a prompt template.

Parameters:

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

func ShowContent

func ShowContent(cmd *cobra.Command, content []byte)

ShowContent prints prompt template content to stdout.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • content: Raw prompt template bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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