positional arguments deno task
Can I use positional arguments in deno task?
I have a number of scripts that I frequently want to run commands against both a dev and test database. I currently control which I'm connecting to via an environment variable. So where I'd normally do
I want to write
My attempt looks like so
But the positional argument seems to just get appended on the end without interpolation
Is this possible? Should I rethink this?
Thanks in advance!
2 Replies
yeah parameters to tasks are merely appended at the end of the command. You could write a simple cli tool that shells out to the different commands or runs them directly in the same process
Makes sense — I'll have it call out to a shell script. Thanks!