add spinner

This commit is contained in:
Daylin Morgan 2024-06-23 08:50:36 -05:00
parent 8442447bfd
commit a124a77908
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -64,8 +64,11 @@ func (o *Oizys) getSystemPath() string {
cmd := exec.Command("nix", "derivation", "show", o.nixosConfigAttr())
logCmd(cmd)
// TODO: add spinner?
cmd.Stderr = os.Stderr
// cmd.Stderr = os.Stderr
s := nixSpinner(o.host)
// result, err := cmd.CombinedOutput()
out, err := cmd.Output()
s.Stop()
if err != nil {
log.Fatal(err)
}