mirror of
https://github.com/Kyren223/eko.git
synced 2026-07-18 17:41:03 +00:00
Display cache file location in user settings
This commit is contained in:
@@ -186,6 +186,12 @@ func (m Model) View() string {
|
||||
Width(m.nameWidth).
|
||||
Render(configFile)
|
||||
|
||||
cacheFile := "Cache File: " + highlightedStyle().Render(config.CacheFile)
|
||||
cacheFile = lipgloss.NewStyle().
|
||||
Background(colors.Background).Foreground(colors.White).
|
||||
Width(m.nameWidth).
|
||||
Render(cacheFile)
|
||||
|
||||
option := highlightedStyle().Render("\"anonymous_device_analytics\": false")
|
||||
analyticsOptOut := "Anonymous device analytics can be disabled in your config file by setting: " + option
|
||||
analyticsOptOut = lipgloss.NewStyle().
|
||||
@@ -194,7 +200,7 @@ func (m Model) View() string {
|
||||
Render(analyticsOptOut)
|
||||
|
||||
content := flex.NewVertical(
|
||||
analyticsOptOut, configFile, name, description, private, update, del,
|
||||
analyticsOptOut, configFile, cacheFile, name, description, private, update, del,
|
||||
).WithGap(1).View()
|
||||
|
||||
return lipgloss.NewStyle().
|
||||
|
||||
Reference in New Issue
Block a user