use dots2 for spinner

This commit is contained in:
Daylin Morgan 2025-01-07 10:38:17 -06:00
parent 9da0b3f4f5
commit eb76f93af2
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -4,6 +4,7 @@ import std/[
] ]
import hwylterm import hwylterm
import hwylterm/spin/spinners # todo: remove after hwylterm update
func addArgs*(cmd: var string, args: openArray[string]) = func addArgs*(cmd: var string, args: openArray[string]) =
@ -62,7 +63,7 @@ proc runCmdCaptWithSpinner*(
var var
output, err: string output, err: string
code: int code: int
withSpinner(msg): with(Dots2, msg):
(output, err, code) = runCmdCapt(cmd, capture) (output, err, code) = runCmdCapt(cmd, capture)
if code != 0: if code != 0:
stderr.writeLine("stdout\n" & output) stderr.writeLine("stdout\n" & output)