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

Method Set

doit.go:342–344  ·  view source on GitHub ↗

Set sets a config key.

(ns, key string, val any)

Source from the content-addressed store, hash-verified

340
341// Set sets a config key.
342func (c *LiveConfig) Set(ns, key string, val any) {
343 viper.Set(nskey(ns, key), val)
344}
345
346// IsSet checks if a config is set
347func (c *LiveConfig) IsSet(key string) bool {

Callers

nothing calls this directly

Calls 2

nskeyFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected