Documentation ¶
Overview ¶
Package console handles input and output to and from stdin/stdout
Index ¶
- func CollectDeviceSelection(size int) int
- func CollectMessageSelection() string
- func CollectPassword() string
- func CollectUsername() string
- func Dummy()
- func PrintAuthFailed(err error)
- func PrintCertNotFoundError(c string)
- func PrintDevices(dr *model.DeviceResult)
- func PrintKeyCertError()
- func PrintKeyNotFoundError(k string)
- func PrintNoDeviceFound(d string)
- func PrintPlayingSound(name, msg string)
- func PrintPortInvalidError(p int)
- func PrintServiceMode(d int)
- func PrintWelcomeBanner()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectDeviceSelection ¶
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 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.
Types ¶
This section is empty.