Skip to content
/ do Public

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

License

Notifications You must be signed in to change notification settings

akluth/do

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.