mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
abb0921f3d
* don’t need cli checkouts anymore * tidy Co-authored-by: Jacob Heider <jacob@tea.xyz>
26 lines
423 B
TypeScript
Executable file
26 lines
423 B
TypeScript
Executable file
#!/usr/bin/env -S tea -E
|
|
|
|
/*---
|
|
args:
|
|
- deno
|
|
- run
|
|
- --allow-run
|
|
- --allow-read
|
|
- --allow-env
|
|
---*/
|
|
|
|
const args = [...Deno.args]
|
|
const via = args.shift()
|
|
|
|
for (const arg of args) {
|
|
const proc = Deno.run({
|
|
stdout: "null", stderr: "null",
|
|
cmd: [via!, arg]
|
|
})
|
|
const status = await proc.status()
|
|
if (status.code !== 0) {
|
|
console.error(`${arg} ❌`)
|
|
} else {
|
|
console.info(`${arg} ✅`)
|
|
}
|
|
}
|