Home
Welcome to the yatr
wiki!
Here we'll look at general guidelines for creating a task file.
As previously noted, you can use any file format for tasks. Currently, yatr
supports the following formats:
- JSON
- YAML
- TOML
- Terraform, HCL
In this case, the structure of the task file will be the same for all formats. Let's take the YAML file format as an example:
name: My tasks set
description: This is my set of tasks
tasks:
- name: async task 1
description: print string from the async task 1
is_async: true
is_sudo: false
is_print_output: true
exec:
- echo
- hello, async task 1!
Structure for tasks set:
Option | Description | Type | Is required? | Default value |
---|---|---|---|---|
name |
Name of tasks set | string |
yes | |
description |
Description of tasks set | string |
no | "" |
tasks |
List with single tasks objects | list |
yes |
Structure for the single task:
Option | Description | Type | Is required? | Default value |
---|---|---|---|---|
name |
Name of the single task | string |
yes | |
description |
Description of the single task | string |
no | "" |
is_async |
Marker for run the single task in async mode | boolean |
no | false |
is_sudo |
Marker for run the single task by the sudo user | boolean |
no | false |
is_print_output |
Marker for run the single task with print output | boolean |
no | false |
exec |
List with strings (command and arguments) to execute for the single task | list |
yes |
Sometimes it happens, it's true… but don't get upset! 🙂
Wiki is a dynamically growing section, so write us your question, and we'll try to answer it. If the question is interesting and/or repeated too often, we'll add it to the FAQ section (with reference to the author's issue).
The best way to ask a question is to create a new issue or a discussion in GitHub repository.
So, follow this checklist to ask a question that we can answer in the shortest possible time:
- Try to search similar question in the issues section.
- If your question is about Go, or else, try to search at StackOverflow first.
- Please fully follow our template to create a new issue.
- If English is not your native language, please use an online translator in advance (for example, DeepL or Google Translate).
- Demonstrate understanding to authors, because this is Open Source and not-for-profit product, and their support is not paid.
- Be nice to the other members of our community.