From e4f7e775c8107f2439bd9f21b93f70c57055e1b1 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 26 Jun 2024 06:51:54 -0600 Subject: [PATCH] add button for starting ci update --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index bb4923a..cadf320 100644 --- a/main.go +++ b/main.go @@ -337,7 +337,16 @@ func (x *xinStatus) updateHostInfo() error { } }() }) + ciUpdate := widget.NewButton("CI Update", func() { + go func() { + err := s.RunCmd("xin ci update", x) + if err != nil { + log.Println(err) + } + }() + }) s.buttonBox.Add(ciStart) + s.buttonBox.Add(ciUpdate) } } }