Skip to content

call-me-maybe is a small CLI tool to notify you of the completion of a command

License

Notifications You must be signed in to change notification settings

SamuelYvon/rs-call-me-maybe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

call-me-maybe

call-me-maybe is a small CLI tool to notify you of the completion of a command

By default, the tools consumes stdin for a message's content and a title is generated for each message. The title can be specified via command line argument or generated automatically through a template given in configuration.

Basic usage:

echo "Hello" | call-me-maybe

or (for the help message)

call-me-maybe -h

Installation

From crates.io

cargo install call-me-maybe

From source

From within the source's directory: cargo install --path . [--features the_features_you_want]

Supported methods of notification

Configuration

The default configuration should be provided in either ~/.callmemaybe or ~/.callmemaybe.toml.

Base configuration

The title_fmt key allows formatting of the title of each message sent. The format string accepts any chrono strftime placeholder as well as $host for the computer's hostname. If left unspecified, the format string is $host %a-%b-%Y.

Communicator basic configuration

Every communicator supports a priority number (key priority). The communicators are tried in order of largest priority to smallest. The command will try all communicators until one succeeds.

Libnotify

Requires feature libnotify when building to be supported.

Pushover

The following keys are required:

  • app_token: the application token to select an application
  • user_token: your user's token

Example Config:

title_fmt = "%H:%M"

[libnotify]
priority = 1

[pushover]
priority = 1000
app_token = "..."
user_token = "..."

About

call-me-maybe is a small CLI tool to notify you of the completion of a command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages