Compare commits

..

No commits in common. "996105f9cde7899fd7a18bdb71ad081ecded429d" and "1c6c9b0f5f278127a2d4dfaf7b93fdd4b1f31250" have entirely different histories.

6
src/cli.ts Executable file → Normal file
View File

@ -1,15 +1,9 @@
#!/usr/bin/env bun
import { isatty } from "node:tty"
import { renderMarkdown } from "./index"
const args = process.argv.slice(2)
if (args.length === 0 && isatty(0)) {
process.stderr.write(`Usage: tm <file>\n tm < file\n command | tm\n`)
process.exit(0)
}
let input: string
if (args.length > 0 && args[0] !== "-") {