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

Method StringSlice

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

Source from the content-addressed store, hash-verified

216}
217
218func (c *flagContext) StringSlice(k string) []string {
219 if !c.isFlagProvided(&k) {
220 return []string{}
221 }
222
223 v := c.flagsets[k].GetValue()
224 switch v.(type) {
225 case []string:
226 return v.([]string)
227 }
228 return []string{}
229}
230
231func (c *flagContext) SkipFlagParsing(skip bool) {
232 c.skipFlagParsing = skip

Callers

nothing calls this directly

Calls 2

isFlagProvidedMethod · 0.95
GetValueMethod · 0.65

Tested by

no test coverage detected