tj / robo

Simple Go / YAML-based task runner for the team.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling dependent tasks

sporto opened this issue · comments

Is this the idiomatic way of calling dependent tasks?

robo.yml:

one:
  command: echo one

two:
  command: echo two

all:
  command: |
    robo one
    robo two

So, calling robo again with the sub task

Nothing like make where you declare the dependency directly?

makefile:

one:
    echo one

two:
    echo two

all: one two

Just checking if I am doing it right, thanks.

nope, nothing built in yet. I didn't intend on emulating everything a Makefile can do, we don't have any use-cases with dependencies yet but I could see even some basic hooks being helpful, something like:

docker.build:
  command: ...
  after:
    - docker.push

but I think I'd prefer built-in support for what you have there, just exposing the bin's path/config as a variable or something nicer