diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-11 16:07:15 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | dc6c10155c33033b386665e7882b91be9837f55a (patch) | |
| tree | 64ca15fdb2aec5a17c93bae99508f70e61b951a6 /internal/client/client.go | |
| parent | 86c3f3f730dd8867f4d5df6fef428df36ff2d193 (diff) | |
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)
Diffstat (limited to 'internal/client/client.go')
| -rw-r--r-- | internal/client/client.go | 7 |
1 files changed, 6 insertions, 1 deletions
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}) |
