fix spinner text

This commit is contained in:
Daylin Morgan 2025-01-24 17:04:34 -06:00
parent ff646436b8
commit 57ffe8e24b
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 2 additions and 3 deletions

View file

@ -67,7 +67,7 @@ proc formatStdoutStderr(stdout: string, stderr: string): BbString =
proc runCmdCaptWithSpinner*( proc runCmdCaptWithSpinner*(
cmd: string, cmd: string,
msg: string = "", msg: BbString | string = bb"",
capture: set[CaptureGrp] = {CaptStdout} capture: set[CaptureGrp] = {CaptStdout}
): tuple[output, err: string] = ): tuple[output, err: string] =
var var

View file

@ -135,8 +135,7 @@ proc toBuildNixosConfiguration(): seq[string] =
let (_, err) = runCmdCaptWithSpinner( let (_, err) = runCmdCaptWithSpinner(
cmd, cmd,
# BUG: hwylterm spinner not showing styled text? # BUG: hwylterm spinner not showing styled text?
# "running dry run build for: " & $(getHosts().join(" ").bb("bold")), "running dry run build for: " & (getHosts().join(" ").bb("bold")),
"running dry run build for: " & getHosts().join(" "),
capture = {CaptStderr} capture = {CaptStderr}
) )
let output = parseDryRunOutput err let output = parseDryRunOutput err