mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 07:07:32 -06:00
use dots2 for spinner
This commit is contained in:
parent
9da0b3f4f5
commit
eb76f93af2
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue