mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
standardize config help defaults (#14788)
This commit is contained in:
@@ -87,3 +87,12 @@ var (
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
// DefaultHelpPostfix - Helper function to add (default: $value) messages in config help
|
||||
func DefaultHelpPostfix(subsystem KVS, key string) string {
|
||||
val, found := subsystem.Lookup(key)
|
||||
if !found || val == "" {
|
||||
return ""
|
||||
}
|
||||
return " (default: '" + val + "')"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user