prompt

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptPassword

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

func PromptString

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

Types

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