Skip to content

Commit

Permalink
rustfmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanugoel committed Jun 18, 2021
1 parent 1e2036e commit a83b0af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
//! `ssup` is a simple cross-platform tool to send notifications via cli to local system or telegram.
//! It can also be used to get alerted after a long-running (or otherwise) command finishes. This can be used either by specifying the command at the end of the ssup command, or by chaining ssup with other commands. See the examples/CLI options below for more.
//!
//!
//! ## Examples
//! ```
//! # Send a notification to local system
//! $ ssup -m "Hello world!"
//!
//!
//! # Send a notification to telegram
//! $ export SSUP_TG_BOT_TOKEN=<Your telegram bot token>
//! $ ssup -m "Hello world!" -d telegram -c <your-telegram-chat-id>
//!
//! $ ssup -m "Hello world!" -d telegram -c <your-telegram-chat-id>
//!
//! # Run a custom command and send notification after it finishes. Advantage of this is that ssup will also report whether command was successful or not.
//! $ ssup -m "Hello world!" sleep 5
//!
//!
//! # Alternate ways to run a custom command and send notification after it finishes
//! $ sleep 5; ssup -m "Hello world!" # Always send notification
//! $ sleep 5 && ssup -m "Hello world!" # Send notification only on success
//! $ sleep 5 || ssup -m "Hello world!" # Send notification only on failure
//!
//!
//! ```
use std::env;
use std::error::Error;
Expand Down

0 comments on commit a83b0af

Please sign in to comment.