utils

package
v0.0.0-...-36bf3b1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = map[string]string{
	"White":   "\033[97m",
	"Red":     "\033[31m",
	"Green":   "\033[32m",
	"Yellow":  "\033[33m",
	"Blue":    "\033[34m",
	"Magenta": "\033[35m",
	"Cyan":    "\033[36m",
	"Gray":    "\033[37m",
	"Reset":   "\033[0m",
}

Functions

func Auth

func Auth() bool

func DecryptData

func DecryptData(encrypted string) string

func EncryptData

func EncryptData(data string) string

func GetSnapshotName

func GetSnapshotName() string

func MakeColored

func MakeColored(color string, text string) string

func PromptConfirm

func PromptConfirm(message string) error

func PromptSelect

func PromptSelect(opts PromptOpts) (string, error)

func Setup

func Setup()

Types

type PromptOpts

type PromptOpts struct {
	Message     string
	Items       []string
	UseSearcher bool
}

Jump to

Keyboard shortcuts

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