From 293bbce193712fc06df1710d73f7c12ec56440fc Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Mon, 4 Aug 2025 21:12:50 +0000 Subject: [PATCH] fix: add missing config.go file for Docker builds --- cmd/pulse/config.go | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 cmd/pulse/config.go diff --git a/cmd/pulse/config.go b/cmd/pulse/config.go new file mode 100644 index 000000000..85832b426 --- /dev/null +++ b/cmd/pulse/config.go @@ -0,0 +1,40 @@ +package main + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +var configCmd = &cobra.Command{ + Use: "config", + Short: "Configuration management commands", + Long: `Manage Pulse configuration settings`, +} + +var configInfoCmd = &cobra.Command{ + Use: "info", + Short: "Show configuration information", + Long: `Display information about Pulse configuration`, + RunE: func(cmd *cobra.Command, args []string) error { + fmt.Println("Pulse Configuration Information") + fmt.Println("==============================") + fmt.Println() + fmt.Println("Configuration is managed through the web UI.") + fmt.Println("Settings are stored in encrypted files at /etc/pulse/") + fmt.Println() + fmt.Println("Configuration files:") + fmt.Println(" - nodes.enc : Encrypted Proxmox node configurations") + fmt.Println(" - email.enc : Encrypted email settings") + fmt.Println(" - system.json : System settings (polling interval, etc)") + fmt.Println(" - alerts.json : Alert rules and thresholds") + fmt.Println(" - webhooks.json : Webhook configurations") + fmt.Println() + fmt.Println("To configure Pulse, use the Settings tab in the web UI.") + return nil + }, +} + +func init() { + configCmd.AddCommand(configInfoCmd) +} \ No newline at end of file