Documentation
¶
Index ¶
- Constants
- func ExtractPublicKey(input string) string
- func ExtractSecret(input string) string
- func IsQuit(input string) bool
- func ParseRoleInput(input string) string
- func PrintError(message string)
- func PrintHeader(message string)
- func PrintInfo(message string)
- func PrintMessage(message string)
- func PrintSuccess(message string)
- func PromptSecret(prompt string) string
- func PromptUser(prompt string) string
- func PromptUserSingleChar(prompt string) string
- func SetClipboard(text string) error
Constants ¶
const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Blue = "\033[34m" Yellow = "\033[33m" Purple = "\033[35m" Cyan = "\033[36m" White = "\033[37m" Bold = "\033[1m" )
ANSI color codes
Variables ¶
This section is empty.
Functions ¶
func ExtractPublicKey ¶
ExtractPublicKey extracts the public key from XML-like tags
func ExtractSecret ¶
ExtractSecret extracts the secret from XML-like tags
func ParseRoleInput ¶
ParseRoleInput parses the user's role selection input
func PrintError ¶
func PrintError(message string)
PrintError displays an error message to the user with better formatting and colors
func PrintHeader ¶
func PrintHeader(message string)
PrintHeader displays a header message with styling
func PrintInfo ¶
func PrintInfo(message string)
PrintInfo displays an info message to the user with better formatting and colors
func PrintMessage ¶
func PrintMessage(message string)
PrintMessage displays a message to the user with better formatting
func PrintSuccess ¶
func PrintSuccess(message string)
PrintSuccess displays a success message to the user with better formatting and colors
func PromptSecret ¶
PromptSecret displays a prompt and waits for user input, masking the characters Adds proper spacing and styling
func PromptUser ¶
PromptUser displays a prompt and waits for user input Adds proper spacing and styling
func PromptUserSingleChar ¶
PromptUserSingleChar displays a prompt and waits for a single character input Adds proper spacing and styling
func SetClipboard ¶
SetClipboard copies the given text to the system clipboard Returns an error if the operation is not supported or fails
Types ¶
This section is empty.