dugajean / goke

Go + Make = Goke
GNU General Public License v3.0
13 stars 2 forks source link

Pass args after double dash (--) to each command within the task #23

Closed dugajean closed 1 year ago

dugajean commented 1 year ago

Sample command:

greet-cats:
  run:
    - 'echo "Hello Frey"'
    - 'echo "Hello Bunny"'

If the command is called as follows

goke greet-cats --force -- foo -bar

The last part (foo -bar), should be passed down to the two echoes within the task, like so

echo "Hello Frey" foo -bar
echo "Hello Bunny" foo -bar

Currently the user is unable to pass arguments down to the commands. This would be useful for single commands that may need variable information passed to them.