(mode: "lines" | "bytes", n: number)
| 114 | const evalarg = (text: string) => (sh() === "cmd" ? quote(text) : squote(text)) |
| 115 | |
| 116 | const fill = (mode: "lines" | "bytes", n: number) => { |
| 117 | const code = |
| 118 | mode === "lines" |
| 119 | ? "console.log(Array.from({length:Number(Bun.argv[1])},(_,i)=>i+1).join(String.fromCharCode(10)))" |
| 120 | : "process.stdout.write(String.fromCharCode(97).repeat(Number(Bun.argv[1])))" |
| 121 | const text = `${bin} -e ${evalarg(code)} ${n}` |
| 122 | if (PS.has(sh())) return `& ${text}` |
| 123 | return text |
| 124 | } |
| 125 | const glob = (p: string) => |
| 126 | process.platform === "win32" ? Filesystem.normalizePathPattern(p) : p.replaceAll("\\", "/") |
| 127 |
no test coverage detected