Initial import
Some checks failed
Test and build / Build (amd64, , linux) (push) Failing after 35s
Test and build / Build (arm, 6, linux) (push) Failing after 37s
Test and build / Build (arm, 7, linux) (push) Failing after 37s
Test and build / test (push) Successful in 58s

This commit is contained in:
2026-02-23 15:14:26 +01:00
parent 5c53d38b6c
commit 0ec2808fdd
7 changed files with 433 additions and 0 deletions

49
main.go Normal file
View File

@@ -0,0 +1,49 @@
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v3"
"git.maze.io/ham/hamview/internal/cmd"
)
var logger *logrus.Logger
func main() {
cmd := &cli.Command{
Name: "hamview-receiver",
Usage: "Receiver for HAM radio protocols",
Action: func(context.Context, *cli.Command) error {
fmt.Println("boom! I say!")
return nil
},
Flags: cmd.AllFlags("hamview-receiver.yaml"),
Commands: []*cli.Command{
{
Name: "aprsis",
Usage: "Start an APRS-IS proxy",
Before: cmd.ConfigureLogging(&logger),
Action: runAPRSIS,
},
{
Name: "meshcore",
Usage: "Start a MeshCore receiver",
Before: cmd.ConfigureLogging(&logger),
Action: runMeshCore,
},
},
}
if err := cmd.Run(context.Background(), os.Args); err != nil {
log.Fatal(err)
}
}
func waitForInterrupt() error {
return cmd.WaitForInterrupt(logger, "receiver")
}