MCPcopy Index your code
hub / github.com/cloudfoundry/cli / String

Method String

cf/flags/flags.go:191–202  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

189}
190
191func (c *flagContext) String(k string) string {
192 if !c.isFlagProvided(&k) {
193 return ""
194 }
195
196 v := c.flagsets[k].GetValue()
197 switch v.(type) {
198 case string:
199 return v.(string)
200 }
201 return ""
202}
203
204func (c *flagContext) Bool(k string) bool {
205 if !c.isFlagProvided(&k) {

Callers

nothing calls this directly

Calls 2

isFlagProvidedMethod · 0.95
GetValueMethod · 0.65

Tested by

no test coverage detected