forked from defunkt/toes
14 lines
295 B
TypeScript
Executable File
14 lines
295 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
import { program } from './setup'
|
|
|
|
const isSSH = !!process.env.SSH_CONNECTION
|
|
const noArgs = process.argv.length <= 2
|
|
const isTTY = !!process.stdin.isTTY
|
|
|
|
if (isSSH && noArgs && isTTY) {
|
|
const { shell } = await import('./shell')
|
|
await shell()
|
|
} else {
|
|
program.parse()
|
|
}
|