浏览代码

Clarify what command hooks are in the reference documentation.

Dan Helfman 3 周之前
父节点
当前提交
dea1c0179b
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2 3
      NEWS
  2. 3 2
      docs/reference/configuration/command-hooks.md

+ 2 - 3
NEWS

@@ -1,7 +1,6 @@
 2.0.10.dev0
- * #942: Factor reference material out of the documentation how-to guides. This means
-   there's now a whole reference section in the docs! Check it out:
-   https://torsion.org/borgmatic/
+ * #942: Factor reference material out of the documentation how-to guides. This means there's now a
+   whole reference section in the docs! Check it out: https://torsion.org/borgmatic/
  * #1161: Fix a traceback (TypeError) in the "check" action with Python 3.14.
  * Add documentation search.
  * Change the URL of the local documentation development server to be more like the production URL.

+ 3 - 2
docs/reference/configuration/command-hooks.md

@@ -5,8 +5,9 @@ eleventyNavigation:
   parent: ⚙️  Configuration
 ---
 <span class="minilink minilink-addedin">New in version 2.0.0</span> Command
-hooks are configured via a list of `commands:` in your borgmatic
-configuration file. For example:
+hooks allow you to run arbitrary prepration and cleanup commands (or external
+scripts) at various points in borgmatic's execution. You configure them via a
+list of `commands:` in your borgmatic configuration file. For example:
 
 ```yaml
 commands: