From dc6c10155c33033b386665e7882b91be9837f55a Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 11 Jul 2025 16:07:15 +0300 Subject: Added anonymous_device_analytics option on the client and added cache dir to store things like device ID and TOS hashes (only storing device ID currently) --- internal/client/client.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal/client/client.go') diff --git a/internal/client/client.go b/internal/client/client.go index 0ba3530..57e1bb1 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -37,11 +37,16 @@ func Run() { log.Println("client started") - err := config.Load() + err := config.LoadConfig() if err != nil { fmt.Printf("Config file at '%v' was unable to load successfully\n%v\n", config.ConfigFile, err) os.Exit(1) } + err = config.LoadCache() + if err != nil { + fmt.Printf("Cache file at '%v' was unable to load successfully\n%v\n", config.CacheFile, err) + os.Exit(1) + } program := tea.NewProgram(initialModel(dump), tea.WithAltScreen()) assert.AddFlush(BubbleTeaCloser{program}) -- cgit v1.3.1