MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / DisplayValue

Method DisplayValue

internal/plugins/plugin.go:174–179  ·  view source on GitHub ↗

DisplayValue returns the value as it may be shown to the user.

()

Source from the content-addressed store, hash-verified

172
173// DisplayValue returns the value as it may be shown to the user.
174func (o *Setting) DisplayValue() string {
175 if o.Sensitive && o.Value != "" {
176 return MaskedValue
177 }
178 return o.Value
179}
180
181func (o *Setting) IsValid() bool {
182 if o.Type == SettingTypeBool {

Callers 3

PrintMethod · 0.95
IsValidErrMethod · 0.95
AskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected