notify

command module
v0.0.0-...-d410053 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 7 Imported by: 0

README

notify

why

sometimes popup messages are for great good.

what

a cli that triggers a fullscreen graphical popup with text.

optionally includes a y/n prompt which will change the exit code.

a delay before the prompt is answerable avoids accidental input.

demo

install

go install github.com/nathants/notify@latest

usage

>> notify -h

notify the user of a message with a fullscreen popup. hit Q or ENTER to exit.

Usage: notify [--prompt] [--delay-seconds DELAY-SECONDS] [--center] [MESSAGE]

Positional arguments:
  MESSAGE                the message to display on screen

Options:
  --prompt, -p           prompt the user for a y/n response, and exit 0/1 accordingly
  --delay-seconds DELAY-SECONDS, -d DELAY-SECONDS
                         delay seconds before accepting user input for prompted y/n [default: 1]
  --center, -c           horizontally center each line
  --help, -h             display this help and exit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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