2022-09-14 18:43:44 +03:00
|
|
|
#!/usr/bin/env -S tea -E
|
|
|
|
|
|
|
|
/*---
|
|
|
|
args:
|
|
|
|
- deno
|
|
|
|
- run
|
|
|
|
- --allow-run
|
|
|
|
- --allow-read
|
|
|
|
- --allow-env
|
|
|
|
- --import-map={{ srcroot }}/import-map.json
|
|
|
|
---*/
|
|
|
|
|
2022-09-19 16:32:27 +03:00
|
|
|
const args = [...Deno.args]
|
|
|
|
const via = args.shift()
|
2022-09-14 18:43:44 +03:00
|
|
|
|
2022-09-19 16:32:27 +03:00
|
|
|
for (const arg of args) {
|
2022-09-14 18:43:44 +03:00
|
|
|
const proc = Deno.run({
|
|
|
|
stdout: "null", stderr: "null",
|
2022-09-19 16:32:27 +03:00
|
|
|
cmd: [via!, arg]
|
2022-09-14 18:43:44 +03:00
|
|
|
})
|
|
|
|
const status = await proc.status()
|
|
|
|
if (status.code !== 0) {
|
2022-09-19 16:32:27 +03:00
|
|
|
console.error(`${arg} ❌`)
|
|
|
|
} else {
|
|
|
|
console.info(`${arg} ✅`)
|
2022-09-14 18:43:44 +03:00
|
|
|
}
|
|
|
|
}
|