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.