Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

483 B
Raw Blame
import { Shell } from "../src";
import { print } from "raea/native";
export default async function main() {
  const sh = new Shell({ root: "/tmp/h2m" + Date.now() });
  for (const c of ["echo '<h1>Hi</h1><p>a <b>b</b></p>' | html-to-markdown", "echo hello > a.txt && tar -czf a.tgz a.txt && tar -tzf a.tgz", "tar -cf b.tar a.txt && tar -tf b.tar", "echo x | gzip | gunzip"]) {
    const r = await sh.exec(c);
    print(`$ ${c} -> ${r.exitCode}\n${r.stdout}[err] ${r.stderr}`);
  }
}