MCPcopy Create free account
hub / github.com/Driver-C/tryssh / updateConfig

Method updateConfig

pkg/control/create.go:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (cc *CreateController) updateConfig() {
53 displayContent := cc.createContent
54 if cc.createType == TypePasswords {
55 displayContent = utils.MaskSecret(displayContent)
56 }
57 if err := config.UpdateConfig(cc.configuration); err == nil {
58 utils.Infof("Create %s: %s completed.\n", cc.createType, displayContent)
59 } else {
60 utils.Errorf("Create %s: %s failed.\n", cc.createType, displayContent)
61 }
62}
63
64func (cc *CreateController) createCaches() bool {
65 var newCache CacheContent

Callers 2

ExecuteCreateMethod · 0.95

Calls 4

MaskSecretFunction · 0.92
UpdateConfigFunction · 0.92
InfofFunction · 0.92
ErrorfFunction · 0.92

Tested by 1