ui

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ui contains some common UI elements, that use Survey library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(msg string, defavlt bool) (bool, error)

func Input

func Input(msg, help string, validator survey.Validator) (string, error)

Input shows a text input field with a custom validator.

func String

func String(msg, help string) (string, error)

String asks user to input string, accepts an empty input.

func StringRequire added in v2.2.0

func StringRequire(msg, help string) (string, error)

StringRequire requires user to input string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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