akluth / do

Simple, stupid command processor/task executer/just-execute-shell-commands-in-order-grouped-by-tasks-thingy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

do - do it, just, just...do it.

What is this?

This is nothing more, nothing less than a simple and stupid command-processor, task executer, /just-execute-shell-commands-in-order-grouped-by-tasks-thingy or whatever you like to call it.

No logo, no code coverage, no 'backers', just some Go code hacked together in around an hour to avoid using Makefiles and make anymore and all of the alternatives out there.

It does the job for me and maybe it does it for you.

Usage

Dofile:

description = "Very important tasks"

[tasks]

    [tasks.build]
    commands = [
        "my-super-cool-build-tool --with-options AndArguments"
    ]
    output = true

    [tasks.clean]
    commands = [
        "rm -rf /",
        "echo 'That wasn't so smart, wasn't it?'"
    ]
    output = true
    piped = true
    
    [tasks.clean-build]
    tasks = [
        "clean",
        "build"
    ]

Then simply type

$ do build
$ do clean
$ do build clean
$ do clean-build

to execute those super-important tasks.

About

Simple, stupid command processor/task executer/just-execute-shell-commands-in-order-grouped-by-tasks-thingy

License:MIT License


Languages

Language:Go 100.0%