mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
add spinner
This commit is contained in:
parent
8442447bfd
commit
a124a77908
1 changed files with 4 additions and 1 deletions
|
@ -64,8 +64,11 @@ func (o *Oizys) getSystemPath() string {
|
||||||
cmd := exec.Command("nix", "derivation", "show", o.nixosConfigAttr())
|
cmd := exec.Command("nix", "derivation", "show", o.nixosConfigAttr())
|
||||||
logCmd(cmd)
|
logCmd(cmd)
|
||||||
// TODO: add spinner?
|
// TODO: add spinner?
|
||||||
cmd.Stderr = os.Stderr
|
// cmd.Stderr = os.Stderr
|
||||||
|
s := nixSpinner(o.host)
|
||||||
|
// result, err := cmd.CombinedOutput()
|
||||||
out, err := cmd.Output()
|
out, err := cmd.Output()
|
||||||
|
s.Stop()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue