mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 18:30:05 +00:00
doc action
This commit is contained in:
6
docs/config/config-actions.md
vendored
6
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
|
and [template variables](../template/template-variables.md)) can be used
|
||||||
in actions for more advanced use-cases.
|
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
|
```yaml
|
||||||
dotfiles:
|
dotfiles:
|
||||||
f_test:
|
f_test:
|
||||||
@@ -88,7 +92,7 @@ actions:
|
|||||||
log: "echo {0} >> {1}"
|
log: "echo {0} >> {1}"
|
||||||
config:
|
config:
|
||||||
default_actions:
|
default_actions:
|
||||||
- preaction '{{@@ _dotfile_key @@}} installed' "/tmp/log"
|
- log '{{@@ _dotfile_key @@}} installed' "/tmp/log"
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user