deno_task_shell
deno_task_shell copied to clipboard
Cross platform shell for deno task.
https://man7.org/linux/man-pages/man1/sleep.1.html
Support the `wait` keyword like bash&sh does to allow waiting for async commands to complete. That way, you can run commands in parallel and wait for all to finish before...
I have a test for this in the CLI here: https://github.com/denoland/deno/pull/14421 -- I wasn't sure how to test this here. This uses the jobs api in Windows in order to...
Consider this example: deno.jsonc: ```json { "tasks": { "script": "deno run script.ts", } } ``` script.ts: ```typescript console.log(Deno.pid); while (true); ``` reproduction.ts: ```typescript const BROKEN = ["deno", "task", "script"]; const...
For example, say you had: ```json { "tasks": { "my_task": "./my_script.js" } } ``` And the script had: ```js #!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-run // ...etc... ```...
Based on https://github.com/denoland/deno_task_shell/issues/30, I added this task in deno.json ```json { "tasks": { "echo": "export $(cat .env | xargs) && deno eval \"console.log(Deno.env.get('DATABASE_URL'))\"" } } ``` And my .env file...
For writing simple scripts it could be nice to have some bash-like if / then / else support.
https://www.gnu.org/software/make/manual/html_node/Setting.html#Setting This would make it easier to re-use deno tasks in other tasks that have different environment variables. ```json { "tasks": { "run": "export APP_ENV ?= production && deno run...
It would be useful if deno\_task\_shell builds in `head` and `tail` commands with option `-n`. They usually can be used for picking up the first or last line of a...