Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support providing a CommandBuilder to a template literal expr #239

Open
dsherret opened this issue Feb 5, 2024 · 1 comment
Open

Support providing a CommandBuilder to a template literal expr #239

dsherret opened this issue Feb 5, 2024 · 1 comment

Comments

@dsherret
Copy link
Owner

dsherret commented Feb 5, 2024

This needs to be thought out a lot more, but essentially I would like all of these to execute in parallel:

const cmd1 = $`echo 1`;
const cmd2 = $`echo 2`;
const cmd3 = $`echo 3`;

await $`echo ${cmd1} ${cmd2} ${cmd3}`;

And none of these to execute because it errors before the relevant pipeline occurs:

const cmd1 = $`echo 1`;
const cmd2 = $`echo 2`;
const cmd3 = $`echo 3`;

await $`exit 1 && echo ${cmd1} ${cmd2} ${cmd3}`;

It should work when provided to a string like so:

const cmd1 = $`echo 1`;
await $`echo 'example ${cmd1} example'`;

This needs a ton of thought especially around error handling. Probably there will need to be something done in deno_task_shell to make it work well.

@zph
Copy link

zph commented Mar 30, 2024

Thank you for the excellent error message that leads here and more broadly for dax 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants