utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TriggerXAsciiArtWithBorder = `` /* 1195-byte string literal not displayed */

Functions

func ConfirmPrompt

func ConfirmPrompt(label string) (bool, error)

ConfirmPrompt prompts the user for a confirmation input.

func DisplayBannerMessage

func DisplayBannerMessage(keeperName, keeperAddress string) error

func GetConfig

func GetConfig(configPath string) (config types.NodeConfig, err error)

func HandleHomeDirPath

func HandleHomeDirPath(path string) string

func IntegerPrompt

func IntegerPrompt(label string) (int, error)

IntegerPrompt prompts the user for an integer input.

func PasswordPrompt

func PasswordPrompt(label string, toConfirm bool) (string, error)

func StringPrompt

func StringPrompt(label string, allowEmpty bool, hasOptions bool, options []string) (string, error)

StringPrompt prompts the user for a string input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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