1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Remove deprecated configs from auto generated config.md

This commit is contained in:
Karim Khaleel
2025-03-22 15:16:36 -04:00
committed by Stefan Haller
parent d8e2819e2a
commit b5d4bdbd08
2 changed files with 4 additions and 42 deletions

View File

@ -205,6 +205,10 @@ func recurseOverSchema(rootSchema, schema *jsonschema.Schema, parent *Node) {
for pair := schema.Properties.Oldest(); pair != nil; pair = pair.Next() {
subSchema := getSubSchema(rootSchema, schema, pair.Key)
if strings.Contains(strings.ToLower(subSchema.Description), "deprecated") {
continue
}
node := Node{
Name: pair.Key,
Description: subSchema.Description,