console

package
v0.0.0-...-79723ac Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package console handles input and output to and from stdin/stdout

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectDeviceSelection

func CollectDeviceSelection(size int) int

CollectDeviceSelection asks the user to select a device to beep. It then returns the index of the selected device

func CollectMessageSelection

func CollectMessageSelection() string

CollectMesageSelection asks the user to type a message to be sent to the iOS device you want to beep.

func CollectPassword

func CollectPassword() string

CollectPassword asks the user to type in their iCloud password. It then collects the input and returns it.

func CollectUsername

func CollectUsername() string

CollectUsername asks the user to type in their iCloud username. It then collects the input and returns it.

func Dummy

func Dummy()

func PrintAuthFailed

func PrintAuthFailed(err error)

PrintAuthFailed well, now we're just getting literal

func PrintCertNotFoundError

func PrintCertNotFoundError(c string)

PrintKeyNotFoundError prints out a message to the console informing the user that the sky has indeed fallen. Or it may indicate that the key path/file simply does not exist.

func PrintDevices

func PrintDevices(dr *model.DeviceResult)

PrintDevices uses the tablewriter (github.com/olekukonko/tablewriter) package to pretty print a lovely grid of the devices registered on your iCloud account

func PrintKeyCertError

func PrintKeyCertError()

PrintKeyCertError simply prints out a message informing the user that they have failed to supply a private key and certificate. This is because gobeepme only runs over TLS. If you don't have a valid key/cert - you can generate a quality free one at https://letsencrypt.org

func PrintKeyNotFoundError

func PrintKeyNotFoundError(k string)

PrintKeyNotFoundError prints out a message to the console informing the user that the sky has indeed fallen. Or it may indicate that the key path/file simply does not exist.

func PrintNoDeviceFound

func PrintNoDeviceFound(d string)

PrintNoDeviceFound prints out the supplied device that wasn't found when looking for it against the users iCloud accountg

func PrintPlayingSound

func PrintPlayingSound(name, msg string)

PrintPlayingSound prints out a message to the console, indicating that the beep is indeed beeping.

func PrintPortInvalidError

func PrintPortInvalidError(p int)

PrintPortInvalidError prints out a message to the console informing the user that they need to use a port higher than 1024 - because of reasons.

func PrintServiceMode

func PrintServiceMode(d int)

PrintServiecMoode prints out a message informing the user that the app has started in a non interactive mode and is listening for web requests.

func PrintWelcomeBanner

func PrintWelcomeBanner()

PrintWelcomeBanner this one should be obvious.

Types

This section is empty.

Jump to

Keyboard shortcuts

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