Skip to content

Commit

Permalink
Adds documentation for macro arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Dec 31, 2023
1 parent 5c39f1c commit faf971f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,23 @@ macro:
- `repeat 5 send {"ping": 1}` repeat provided command or macro defined number of times
- `sleep 1` sleeps for the provided number of seconds

### Macros arguments

Macro support [Go template language](https://pkg.go.dev/text/template). It provides a possibility to pass arguments to your macro command and substitute or adjust the behavior of your macro commands.

```
version: "1"
domains:
- example.com
macro:
authorize:
- |-
send {
"authorize": "{{index .Args 0}}",
}
- wait 2
```
### Macros presets
- [Deriv API](https://github.com/ksysoev/wsget-deriv-api)
Expand Down

0 comments on commit faf971f

Please sign in to comment.