kcmerrill / alfred

(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
MIT License
63 stars 14 forks source link

Feature: Added 'for' component #48

Closed kcmerrill closed 6 years ago

kcmerrill commented 6 years ago

Added a for component.

A shell command or a string(depending on the exit code of the string) that is new line delimited. Will create a task or multitask based on input data.

example.task:
    summary: List all files in a directory and echo the argument
    for:
        task: the.task.name
        multitask: |
            argument.one
            argument.two
            argument.three
            argument.four
        task: |
            ls -R -1

the.task.name:
    summary: Echo text
    command: |
        echo {{ index .Args 0 }}