Initial commit: Proxmox cloud image template tool

This commit is contained in:
2025-11-14 20:35:06 +07:00
commit 8d057bfd94
10 changed files with 629 additions and 0 deletions

21
config.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"fmt"
"os"
"gopkg.in/yaml.v3"
)
func loadConfigFile(path string, config *Config) error {
data, err := os.ReadFile(path)
if err != nil {
return fmt.Errorf("failed to read config file: %w", err)
}
if err := yaml.Unmarshal(data, config); err != nil {
return fmt.Errorf("failed to parse config file: %w", err)
}
return nil
}