Add parse cli

This commit is contained in:
problematicconsumer
2024-01-15 17:59:45 +03:30
parent 8c90556e6a
commit cbed17873f
4 changed files with 66 additions and 11 deletions

View File

@@ -10,7 +10,11 @@ import (
)
func Parse(path string, tempPath string, debug bool) error {
return config.ParseConfig(path, tempPath, debug)
config, err := config.ParseConfig(tempPath, debug)
if err != nil {
return err
}
return os.WriteFile(path, config, 0777)
}
func BuildConfig(path string, configOptionsJson string) (string, error) {