cml04-falcon-system/cmd/sap.go
2024-10-01 20:28:58 +02:00

36 lines
1.2 KiB
Go

/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
"git.espin.casa/albert/cml04-falcon-system/sap/app"
"github.com/spf13/cobra"
)
// sapCmd represents the sap command
var sapCmd = &cobra.Command{
Use: "sap",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: app.Run,
}
func init() {
rootCmd.AddCommand(sapCmd)
sapCmd.Flags().String("db-username", "postgres", "database username")
sapCmd.Flags().String("db-password", "Me8140@01", "database user password")
sapCmd.Flags().String("db-host", "10.136.49.104", "database host address")
sapCmd.Flags().Int("db-port", 5432, "database tcp port")
sapCmd.Flags().String("db-name", "falcon", "database user password")
sapCmd.Flags().String("nats-host", "10.136.49.95", "nats.io broker host address")
sapCmd.Flags().Int("nats-port", 4222, "nats.io broker tcp port")
sapCmd.Flags().String("log-level", "debug", "log level trace")
}