1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
diff --git a/cmd/root.go b/cmd/root.go
index a7394a1..9374d1b 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -59,7 +59,6 @@ func init() {
rootCmd.PersistentPreRunE = func(cmd *cobra.Command, args []string) error {
tui.SetNonInteractive(JSONOutput)
- checkIfUpdateNeeded(cmd)
return nil
}
diff --git a/cmd/update.go b/cmd/update.go
index a05dad2..a430c80 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -1,3 +1,6 @@
+//go:build thunder_selfupdate
+// +build thunder_selfupdate
+
package cmd
import (
diff --git a/cmd/update_test.go b/cmd/update_test.go
index 1208bfe..c88c109 100644
--- a/cmd/update_test.go
+++ b/cmd/update_test.go
@@ -1,3 +1,6 @@
+//go:build thunder_selfupdate
+// +build thunder_selfupdate
+
package cmd
import (
diff --git a/tui/help-menus/root.go b/tui/help-menus/root.go
index 0997d2e..5ba8856 100644
--- a/tui/help-menus/root.go
+++ b/tui/help-menus/root.go
@@ -77,7 +77,7 @@ func RenderRootHelp(cmd *cobra.Command) {
sections := []section{
{"CORE", []string{"create", "status", "connect", "modify", "delete"}},
{"UTILS", []string{"scp", "ports", "snapshot", "ssh-keys"}},
- {"SETTINGS", []string{"login", "logout", "update"}},
+ {"SETTINGS", []string{"login", "logout"}},
}
output.WriteString(SectionStyle.Render("● COMMANDS"))
diff --git a/tui/help-menus/update.go b/tui/help-menus/update.go
index 3224f86..5df9587 100644
--- a/tui/help-menus/update.go
+++ b/tui/help-menus/update.go
@@ -1,3 +1,6 @@
+//go:build thunder_selfupdate
+// +build thunder_selfupdate
+
package helpmenus
import (
|