prompt

package
v0.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptDir added in v0.13.0

func PromptDir(cmd *cobra.Command, prompt string, mustExist bool) (string, error)

func PromptForMonorepoApps added in v0.13.0

func PromptForMonorepoApps(cmd *cobra.Command) ([]string, error)

func PromptPassword

func PromptPassword(cmd *cobra.Command, prompt string) (string, error)

func PromptString

func PromptString(cmd *cobra.Command, prompt string) (string, error)

Types

type Choice added in v0.16.0

type Choice struct {
	Id           string
	Display      string
	OriginalData any
}

func PromptSelection added in v0.16.0

func PromptSelection(choices []Choice, prompt string) (Choice, error)

type Response

type Response struct {
	Confirmed bool
	IsFlag    bool
}

func PromptYesNo

func PromptYesNo(cmd *cobra.Command, prompt string, defaultValue bool) Response

Jump to

Keyboard shortcuts

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