From 6e8873d1fe0d9a1822d38351e523791acb77cb15 Mon Sep 17 00:00:00 2001 From: Noccy Date: Sun, 4 Sep 2022 15:11:20 +0000 Subject: [PATCH] Update 'Usage' --- Usage.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Usage.md b/Usage.md index 9ea0c8b..fa74c6d 100644 --- a/Usage.md +++ b/Usage.md @@ -30,12 +30,22 @@ $ fresh.phar --check || ./update.sh ### Slack/Mattermost Webhooks -Fresh can invoke a Slack-compatible webhook to notify before anything is actually updated. To do this, use the `--slack` flag followed by the webhook URL +Fresh can invoke a Slack-compatible webhook to notify before anything is actually updated. To do this, use the `--slack` flag followed by the webhook URL: + +```shell +# Notify something +$ fresh.phar --slack https://my.server.tld/url +``` ### Script hooks You can specify a script to run after an update by using the `--after` flag. +```shell +# Do something +$ fresh.phar --after /path/to/fix-stuff.sh +``` + ## Scheduled run ### Using cron