This commit is contained in:
2025-05-23 09:33:05 +04:00
parent a16ac8f627
commit 79d66e4b6b
34 changed files with 603 additions and 608 deletions

View File

@@ -0,0 +1,27 @@
package main
import (
"fmt"
"os"
"github.com/freeflowuniverse/heroagent/pkg/system/builders/postgresql"
)
func main() {
// Create a new PostgreSQL builder with default settings
builder := postgresql.NewBuilder()
// Build PostgreSQL
if err := builder.Build(); err != nil {
fmt.Fprintf(os.Stderr, "Error building PostgreSQL: %v\n", err)
os.Exit(1) // Ensure we exit with non-zero status on error
}
// Run PostgreSQL in screen
if err := builder.PostgresBuilder.RunPostgresInScreen(); err != nil {
fmt.Fprintf(os.Stderr, "Error running PostgreSQL in screen: %v\n", err)
os.Exit(1) // Ensure we exit with non-zero status on error
}
fmt.Println("PostgreSQL build completed successfully!")
}