util

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BunnyshellWorkspaceDirname = ".bunnyshell"

Variables

This section is empty.

Functions

func All added in v0.4.0

func All(funcs ...survey.Validator) survey.Validator

func Ask

func Ask(question string, validate survey.Validator) (string, error)

func AskPath added in v0.5.1

func AskPath(question string, value string, validate survey.Validator) (string, error)

func AskSecretWithHelp added in v0.5.1

func AskSecretWithHelp(question string, help string, validate survey.Validator) (string, error)

func AssertMinimumLength

func AssertMinimumLength(length int) survey.Validator

func Choose

func Choose(question string, items []string) (int, string, error)

func Confirm

func Confirm(question string) (bool, error)

func GetAvailableEphemeralPort added in v0.2.0

func GetAvailableEphemeralPort(iface string) (int, error)

func GetWorkspaceDir added in v0.2.0

func GetWorkspaceDir() (string, error)

func Lowercase added in v0.4.0

func Lowercase() survey.Validator

func MakeSpinner added in v0.2.0

func MakeSpinner(suffix string) *spinner.Spinner

Types

This section is empty.

Jump to

Keyboard shortcuts

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