mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 00:59:18 +00:00
doc action
This commit is contained in:
8
docs/config/config-actions.md
vendored
8
docs/config/config-actions.md
vendored
@@ -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 `{<arg-num>}` 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.
|
||||
Make sure to quote the actions using variables.
|
||||
|
||||
Reference in New Issue
Block a user