cml04-falcon-system/cmd/bundle.go

32 lines
1021 B
Go
Raw Permalink Normal View History

2024-10-01 20:28:58 +02:00
/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
2024-10-02 15:36:58 +02:00
"git.espin.casa/albert/cml04-falcon-system/bundle/app"
2024-10-01 20:28:58 +02:00
"github.com/spf13/cobra"
)
// bundleCmd represents the bundle command
var bundleCmd = &cobra.Command{
Use: "bundle",
2024-10-02 15:36:58 +02:00
Short: "Bundle service manager.",
Long: "Bundle service manager. Register, calculate values for bundles (production).",
Run: app.Run,
2024-10-01 20:28:58 +02:00
}
func init() {
rootCmd.AddCommand(bundleCmd)
2024-10-02 12:54:57 +02:00
// flags
bundleCmd.Flags().String("db-username", "postgres", "database username")
bundleCmd.Flags().String("db-password", "Me8140@01", "database user password")
bundleCmd.Flags().String("db-host", "db", "database host address")
bundleCmd.Flags().Int("db-port", 5432, "database tcp port")
bundleCmd.Flags().String("db-name", "falcon", "database user password")
bundleCmd.Flags().String("nats-host", "nats", "nats.io broker host address")
bundleCmd.Flags().Int("nats-port", 4222, "nats.io broker tcp port")
bundleCmd.Flags().String("log-level", "debug", "log level trace")
2024-10-01 20:28:58 +02:00
}