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

Method Bool

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

Source from the content-addressed store, hash-verified

202}
203
204func (c *flagContext) Bool(k string) bool {
205 if !c.isFlagProvided(&k) {
206 return false
207 }
208
209 v := c.flagsets[k].GetValue()
210 switch v.(type) {
211 case bool:
212 return v.(bool)
213 }
214
215 return false
216}
217
218func (c *flagContext) StringSlice(k string) []string {
219 if !c.isFlagProvided(&k) {

Callers

nothing calls this directly

Calls 2

isFlagProvidedMethod · 0.95
GetValueMethod · 0.65

Tested by

no test coverage detected