Add envconfig docs to the config

This commit is contained in:
Łukasz Magiera 2021-09-30 18:23:05 +02:00
parent 4192e40a9a
commit 7c84e22c3e

View File

@ -125,6 +125,8 @@ func ConfigUpdate(cfgCur, cfgDef interface{}, comment bool) ([]byte, error) {
outLines = append(outLines, pad+"# type: "+doc.Type) outLines = append(outLines, pad+"# type: "+doc.Type)
} }
outLines = append(outLines, pad+"# env var: LOTUS_"+strings.ToUpper(strings.ReplaceAll(section, ".", "_"))+"_"+strings.ToUpper(lf[0]))
} }
} }