task-rs is a simple file-based task runner that executes scripts defined in a YAML file. Create and run your scripts as workflows using one CLI.
brew tap abrunner94/taskrs
brew install taskrsDownload the Linux archive from the releases section
Download the Windows zip file from the releases section
Workflows are composed of tasks containing one or more commands and are defined in YAML files.
The following command creates a skeleton YAML file named my_workflow.yaml in your current working directory that you can modify to fit your needs.
task create -n my_workflowThe following command runs a single workflow file.
task run -f workfile.yaml The following command runs multiple workflow files and its contents in that order, all at once.
task run -f workfile1.yaml,workfile2.yaml,workfile3.yamlnameis the name of your workflowdefaultis a list of task names that runs the tasks defined in thetaskssection in the order it is definedtasksis a list of task names along with a list of commands / scripts to run
name: my_workflow
default:
- sample_task4
- sample_task3
- sample_task2
- sample_task1
tasks:
- name: sample_task1
cmds:
- echo "hello from task 1"
- python test.py
- node test.js
- name: sample_task2
cmds:
- echo "hello from task 2"
- name: sample_task3
cmds:
- echo "hello from task 3"
- name: sample_task4
cmds:
- echo "hello from task 4"