confirm

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 6 Imported by: 0

README

Confirm

Confirm Example

The confirm component allows you to quickly prompt the user to choose between Yes/No, True/False, etc.. Move with the arrow keys or HJKL/YN, confirm selection with CR

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(customOpts ...wtopts.Opts) (state bool, err error)

func Draw

func Draw(state *bool, opts wtopts.Opts) string

func HandleKey

func HandleKey(state *bool, key string, opts wtopts.Opts) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳