TaskRunner is a Python script that reads tasks and terminal commands from a YAML file and executes them accordingly. This could be used to install default apps for a fresh installation, or for some tasks that should be executed periodicaly.
Before using TaskRunner, make sure you have the following installed:
- Python [https://www.python.org/downloads/]
-
Clone the repository:
git clone https://github.com/PedroS235/TaskRunner.git cd TaskRunner
-
Install required Python packages
pip install -r requirements.txt
-
Create a YAML file (
tasks.yaml
for example) with you list of tasks and corresponding commands -
run the script
python taskrunner.py path_to_file
The script will read the YAML file, execute the tasks and provide some feedback.
An example of a tasks.yaml
can be found in the repo root directory, or below
OS: 'Linux' # Darwin, Windows
tasks:
- name: 'This is a task example'
cmds: ['echo "Hello World!"']
- name: 'This is a task example with subtasks'
cmds:
['echo "This is the first subtask"', 'echo "This is the second subtask"']
This project is licensed under the MIT License.