add(commands for common configs)

This commit is contained in:
DeniskaRediska committed 2019-10-29 16:47:21 +03:00
1 parent 19c02ef270
commit 93071eef5b
23 files changed
+920 -158

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package utils
import (
"isp-ctl/cfg"
"isp-ctl/service"
)
func CreateUpdateConfig(stringToChange string, configuration *cfg.Config) {
if answer, err := service.Config.CreateUpdateConfig(stringToChange, configuration); err != nil {
PrintError(err)
} else if answer != nil {
PrintAnswer(answer)
}
}