shrayasr / Iko

commandline based task runner
MIT License
16 stars 3 forks source link
cli task-runner windows

Iko

Japanese for "go"

Iko is a commandline based task runner for windows. This is written purely for my purpose but if there is enough interest, I'd be happy to make it more generic

Motivation

Some everyday tasks, I find rather mundane:

And I didn't want to do any of this manually. So I wrote Iko

Solution

Iko uses Toml to define the commands that can be run. Assume you want to perform 3 tasks

Then you'd define ~/iko.toml like so:

[foobar]
cmd = 'folder'
path = 'C:\path\to\selected\folder'

[hosts]
cmd = 'vim'
as-admin = true
path = 'C:\windows\system32\drivers\etc\hosts'

[iko]
cmd = 'vs17'
path = 'C:\Users\shrayasr\code\iko\iko.sln'

And from anywhere, after adding iko to path, you'd be able to execute any of these tasks using their names. So:

Possible commands

Currently, the following values are allowed in the cmd section

PRs are welcome for new runners :)