mirror of
https://github.com/minio/minio.git
synced 2026-11-12 22:42:20 +00:00
standardize config help defaults (#14788)
This commit is contained in:
1 parent
c56a139fdc
commit
fe1fbe0005
16 files changed
+291
-189
No files matched your search
@@ -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