From 4150669d29cb84abb6abfee7acac992553d2cadb Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 22 May 2024 10:57:30 -0500 Subject: [PATCH] add more verbose output support --- pkgs/oizys/oizys-go/pkg/oizys.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/oizys/oizys-go/pkg/oizys.go b/pkgs/oizys/oizys-go/pkg/oizys.go index a34677a..a4ba1af 100644 --- a/pkgs/oizys/oizys-go/pkg/oizys.go +++ b/pkgs/oizys/oizys-go/pkg/oizys.go @@ -17,6 +17,7 @@ import ( "github.com/briandowns/spinner" ) +// verbose vs debug? type Oizys struct { flake string host string @@ -229,6 +230,10 @@ func (o *Oizys) NixosRebuild(subcmd string, rest ...string) { o.flake, } args = append(args, rest...) + if o.verbose { + args = append(args, "--verbose") + fmt.Println("CMD:", "sudo", strings.Join(args, " ")) + } cmd := exec.Command("sudo", args...) runCommand(cmd) }