Skip to content

A simple python program that reads a configuration file and executes the different tasks

Notifications You must be signed in to change notification settings

PedroS235/TaskRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaskRunner

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.

Table of Contents

Getting Started

Prerequisites

Before using TaskRunner, make sure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/PedroS235/TaskRunner.git
    cd TaskRunner
  2. Install required Python packages

pip install -r requirements.txt

Usage

  1. Create a YAML file (tasks.yaml for example) with you list of tasks and corresponding commands

  2. run the script

python taskrunner.py path_to_file

The script will read the YAML file, execute the tasks and provide some feedback.

Examples

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"']

License

This project is licensed under the MIT License.

About

A simple python program that reads a configuration file and executes the different tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages