2024-10-01 20:28:58 +02:00
|
|
|
/*
|
|
|
|
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
|
|
|
|
*/
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.espin.casa/albert/cml04-falcon-system/handset/app"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// handsetCmd represents the handset command
|
|
|
|
var handsetCmd = &cobra.Command{
|
|
|
|
Use: "handset",
|
2024-10-02 10:36:08 +02:00
|
|
|
Short: "Handset service for reading/process barcodes.",
|
2024-10-02 12:54:57 +02:00
|
|
|
Long: "Handset service for reading and processing read barcodes from bundle labels.",
|
2024-10-02 10:36:08 +02:00
|
|
|
Run: app.Run,
|
2024-10-01 20:28:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(handsetCmd)
|
|
|
|
|
2024-10-02 10:36:08 +02:00
|
|
|
handsetCmd.Flags().String("http-addr", ":9443", "nats.io broker host address")
|
2024-10-02 12:54:57 +02:00
|
|
|
handsetCmd.Flags().String("nats-host", "nats", "nats.io broker host address")
|
2024-10-02 10:36:08 +02:00
|
|
|
handsetCmd.Flags().Int("nats-port", 4222, "nats.io broker tcp port")
|
|
|
|
handsetCmd.Flags().String("log-level", "debug", "log level trace")
|
2024-10-01 20:28:58 +02:00
|
|
|
}
|