feat: add auto_update config, clarify auto_install vs auto_update vs auto_check

- auto_install (default: true) — install missing binaries on register
- auto_check (default: true) — check for available updates periodically
- auto_update (default: false) — auto-update when newer versions found
- Disabling auto_check also disables auto_update
- Updated README and help docs
This commit is contained in:
2026-02-19 03:24:40 +00:00
parent c905edc162
commit 7ab9da9c56
4 changed files with 34 additions and 9 deletions

View File

@@ -26,12 +26,16 @@ local M = {}
---@field enabled boolean Whether to auto-install missing binaries on register
---@field silent boolean Suppress notifications during auto-install
---@class GlazeAutoUpdateConfig
---@field enabled boolean Whether to auto-update binaries when newer versions are found (requires auto_check)
---@class GlazeConfig
---@field ui GlazeUIConfig
---@field concurrency number Max parallel installations
---@field go_cmd string[] Go command (supports goenv)
---@field auto_check GlazeAutoCheckConfig
---@field auto_install GlazeAutoInstallConfig
---@field auto_check GlazeAutoCheckConfig
---@field auto_update GlazeAutoUpdateConfig
---@class GlazeUIConfig
---@field border string Border style
@@ -60,13 +64,16 @@ M.config = {
},
concurrency = 4,
go_cmd = { "go" },
auto_install = {
enabled = true,
silent = false,
},
auto_check = {
enabled = true,
frequency = "daily",
},
auto_install = {
enabled = true,
silent = false,
auto_update = {
enabled = false,
},
}