diff options
author | Robin Jarry <robin@jarry.cc> | 2023-02-01 00:08:47 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-02 21:50:49 +0100 |
commit | b638f3fa8f5c3bc48d578d3109c2235e7023e07f (patch) | |
tree | 3500fe6a985820496d286e857e5749d7798bb159 /config/config.go | |
parent | c10cb370bb943fa6bb6a947e0a515674f1ee1958 (diff) | |
download | aerc-b638f3fa8f5c3bc48d578d3109c2235e7023e07f.tar.gz |
config: warn for all deprecated settings
index-format may be used in contextual [ui] sections. Display a warning
for every converted section so that users don't miss any.
Fixes: 535300cfdbfc ("config: add columns based index format")
Reported-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 12da665b..2e45b0c8 100644 --- a/config/config.go +++ b/config/config.go @@ -183,3 +183,11 @@ func contains(list []string, v string) bool { } return false } + +// warning message related to configuration (deprecation, etc.) +type Warning struct { + Title string + Body string +} + +var Warnings []Warning |