From 6c9f236f9c53f425c6d06078e8665ee87f2f917b Mon Sep 17 00:00:00 2001 From: Vincent Botta Date: Wed, 17 May 2023 15:51:13 +0200 Subject: [PATCH 1/2] Fix doc examples --- source/CLI.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/CLI.rst b/source/CLI.rst index b4e43087..327eaa41 100644 --- a/source/CLI.rst +++ b/source/CLI.rst @@ -122,7 +122,7 @@ Notifiers CLI enable using pipe to directly pass value to the ``message`` argume .. code-block:: console - $ cat file.txt | notifiers notify email --to blah@foo.com + $ cat file.txt | notifiers email notify --to blah@foo.com Environment variables ===================== @@ -134,7 +134,7 @@ If you defined for example ``NOTIFIERS_PUSHOVER_TOKEN`` and ``NOTIFIERS_PUSHOVER $ export NOTIFIERS_PUSHOVER_TOKEN=FOO $ export NOTIFIERS_PUSHOVER_USER=BAR - $ notifiers notify pushover "wow, this is easy!" + $ notifiers pushover notify "wow, this is easy!" You can change the default env var prefix (which is ``NOTIFIERS_``) by sending the ``--env-prefix`` option: @@ -148,7 +148,7 @@ You can change the default env var prefix (which is ``NOTIFIERS_``) by sending t .. code-block:: console - $ alias notify="notifiers notify pushover" + $ alias notify="notifiers pushover notify" And when combining this with setting environment variables, you can run: From 54f64cf0406e659135f95b57111d1d2bc45a11e8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 17 May 2023 13:51:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/conf.py b/source/conf.py index 6f39d52c..ec3e4771 100644 --- a/source/conf.py +++ b/source/conf.py @@ -76,7 +76,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = 'en' +language = "en" # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.