Skip to content

sirikon/tsk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOT MAINTAINED ANYMORE

Check stevenkl's fork, which is being improved as of today.

tsk

A task runner that only requires a scripts folder and a Tskfile.yml with one line.

How it works

Put your scripts inside a scripts folder at the root of the project, and add a Tskfile.yml next to it, like this:

name: MyProject

Now, from anywhere inside your project, from root to any folder as deep as you want, run tsk.

tsk MyProject
Usage: tsk [command] <subcommands...>

  build scripts/build.sh
  gendoc scripts/gendoc.sh

Running the scripts with tsk always runs them with the project's root folder as working directory, doesn't care about where you run tsk.

Features

  • Run bash files inside scripts folder.
  • Make use of the script file's shebang to decide how to run it.
    • Right now, it must be a .sh file.
  • Bash autocomplete support.

Install

Having the go tools installed, build from source and install:

go get -u github.com/sirikon/tsk/cmd/tsk