mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-10 03:51:54 +00:00
fix: add missing config.go file for Docker builds
This commit is contained in:
parent
97d4fb989b
commit
293bbce193
1 changed files with 40 additions and 0 deletions
40
cmd/pulse/config.go
Normal file
40
cmd/pulse/config.go
Normal file
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue