MCPcopy Index your code
hub / github.com/digitalocean/doctl / GetStringSliceIsFlagSet

Method GetStringSliceIsFlagSet

doit.go:450–456  ·  view source on GitHub ↗

GetStringSliceIsFlagSet returns a config value as a string slice and a bool representing the existence of the flag.

(ns, key string)

Source from the content-addressed store, hash-verified

448
449// GetStringSliceIsFlagSet returns a config value as a string slice and a bool representing the existence of the flag.
450func (c *LiveConfig) GetStringSliceIsFlagSet(ns, key string) ([]string, bool, error) {
451 if !c.IsSet(key) {
452 return nil, false, nil
453 }
454 strSlice, err := c.GetStringSlice(ns, key)
455 return strSlice, true, err
456}
457
458// GetStringMapString returns a config value as a string to string map.
459func (c *LiveConfig) GetStringMapString(ns, key string) (map[string]string, error) {

Callers

nothing calls this directly

Calls 2

IsSetMethod · 0.95
GetStringSliceMethod · 0.95

Tested by

no test coverage detected