MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / SaveConfig

Method SaveConfig

internal/api/client.go:49–55  ·  view source on GitHub ↗

SaveConfig persists credentials and updates the in-memory copy.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

47
48// SaveConfig persists credentials and updates the in-memory copy.
49func (c *Client) SaveConfig(cfg *config.Config) error {
50 if err := config.Save(cfg); err != nil {
51 return err
52 }
53 c.Config = cfg
54 return nil
55}
56
57// ReloadConfig re-reads credentials from disk.
58func (c *Client) ReloadConfig() error {

Callers 2

UpdateMethod · 0.80
runInitFunction · 0.80

Calls 1

SaveFunction · 0.92

Tested by

no test coverage detected