mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 21:15:57 +03:00
fix(cli): indent every row of the pairing QR code on Windows (#53265)
This commit is contained in:
committed by
GitHub
Unverified
parent
2db9c2e1b3
commit
c542a43503
@@ -30,8 +30,9 @@ export default Runtime.handler(
|
||||
...(links[0]
|
||||
? [
|
||||
"",
|
||||
// uqr separates rows with "\n" on every platform, so splitting on EOL ("\r\n" on Windows) indents only the first row.
|
||||
renderUnicodeCompact(links[0], { border: 2 })
|
||||
.split(EOL)
|
||||
.split("\n")
|
||||
.map((line) => " " + line)
|
||||
.join(EOL),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user