()
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 64 | func (cc *CreateController) createCaches() bool { |
| 65 | var newCache CacheContent |