utils

package
v0.0.0-...-ddc80c7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(prompt string) bool

func CopyToClipboard

func CopyToClipboard(text string) error

func ReadInput

func ReadInput(prompt string) (string, error)

func ReadInt

func ReadInt(prompt string) (int, error)

func ReadPassword

func ReadPassword(prompt string) (string, error)

Types

type DaemonRequest

type DaemonRequest struct {
	Action   string `json:"action"`
	Password string `json:"password,omitempty"`
}

type DaemonResponse

type DaemonResponse struct {
	Success  bool   `json:"success"`
	Password string `json:"password,omitempty"`
	Message  string `json:"message,omitempty"`
}

func SendToDaemon

func SendToDaemon(socketPath string, req DaemonRequest) (*DaemonResponse, error)

Jump to

Keyboard shortcuts

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