From ca393e7708e622d51ed510f284a40adaa59842f0 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 4 Sep 2023 12:29:05 +0200 Subject: [PATCH] doc action --- docs/config/config-actions.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/config/config-actions.md b/docs/config/config-actions.md index 3e89a2a..4b77ef5 100644 --- a/docs/config/config-actions.md +++ b/docs/config/config-actions.md @@ -67,6 +67,10 @@ Variables ([config variables and dynvariables](config-file.md#variables) and [template variables](../template/template-variables.md)) can be used in actions for more advanced use-cases. +Actions accept arguments in the form `{}` which specifies which +argument to replace in the action. + +For example ```yaml dotfiles: f_test: @@ -88,8 +92,8 @@ actions: log: "echo {0} >> {1}" config: default_actions: - - preaction '{{@@ _dotfile_key @@}} installed' "/tmp/log" + - log '{{@@ _dotfile_key @@}} installed' "/tmp/log" ... ``` -Make sure to quote the actions using variables. \ No newline at end of file +Make sure to quote the actions using variables.