Deploy MQTT test backend with private viewer and Gitea CI/CD
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"os/signal"
|
||||
"robot-market/test-mqtt-5/internal/cli"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
code := cli.Run(ctx, os.Args[1:], os.Stdout, os.Stderr, true)
|
||||
stop()
|
||||
os.Exit(code)
|
||||
}
|
||||
Reference in New Issue
Block a user