MCPcopy
hub / github.com/digitalocean/doctl / Set

Method Set

doit.go:559–563  ·  view source on GitHub ↗

Set sets a config key.

(ns, key string, val any)

Source from the content-addressed store, hash-verified

557
558// Set sets a config key.
559func (c *TestConfig) Set(ns, key string, val any) {
560 nskey := nskey(ns, key)
561 c.v.Set(nskey, val)
562 c.IsSetMap[key] = true
563}
564
565// IsSet returns true if the given key is set on the config.
566func (c *TestConfig) IsSet(key string) bool {

Callers 1

TestDoctlConfigSourceFunction · 0.95

Calls 2

nskeyFunction · 0.85
SetMethod · 0.65

Tested by 1

TestDoctlConfigSourceFunction · 0.76