2021-03-30 19:59:26 +02:00
|
|
|
// thanks to: https://medium.com/coinmonks/iot-tutorial-read-tags-from-a-usb-rfid-reader-with-raspberry-pi-and-node-red-from-scratch-4554836be127
|
|
|
|
//nolint:lll,godox
|
2021-03-27 15:14:37 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-03-30 19:59:26 +02:00
|
|
|
"io"
|
2021-03-27 15:19:32 +01:00
|
|
|
"os"
|
2021-03-27 15:14:37 +01:00
|
|
|
|
2021-03-30 19:59:26 +02:00
|
|
|
"github.com/rs/zerolog"
|
|
|
|
"github.com/rs/zerolog/log"
|
|
|
|
"go.xsfx.dev/schnutibox/cmd"
|
|
|
|
)
|
2021-03-27 15:14:37 +01:00
|
|
|
|
|
|
|
func main() {
|
2021-03-30 19:59:26 +02:00
|
|
|
// TODO: Using io.MultiWriter here to implement a SSE Logger at some point.
|
|
|
|
log.Logger = zerolog.New(io.MultiWriter(os.Stderr)).With().Caller().Logger()
|
2021-03-27 15:14:37 +01:00
|
|
|
|
2021-03-30 19:59:26 +02:00
|
|
|
cmd.Execute()
|
2021-03-27 15:14:37 +01:00
|
|
|
}
|