From 12f4416eafe1052f60b58158b73eb37d0cad3822 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Sat, 23 Dec 2023 13:05:01 -0800 Subject: [PATCH] Rename address flag as bei --- cmd/tabula/main.go | 8 ++++---- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/tabula/main.go b/cmd/tabula/main.go index cc32200..81f9cfb 100644 --- a/cmd/tabula/main.go +++ b/cmd/tabula/main.go @@ -9,9 +9,9 @@ import ( ) func main() { - var address string + var beiAddress string var pips bool - flag.StringVar(&address, "address", "", "Listen for BEI connections on specified address (TCP)") + flag.StringVar(&beiAddress, "bei", "", "Listen for BEI connections on specified address (TCP)") flag.BoolVar(&pips, "pips", false, "Print table of pseudopip values") flag.BoolVar(&tabula.Verbose, "verbose", false, "Print state of each request") flag.Parse() @@ -25,9 +25,9 @@ func main() { return } - if address != "" { + if beiAddress != "" { s := tabula.NewBEIServer() - s.Listen(address) + s.Listen(beiAddress) } //b := tabula.Board{0, 0, 0, 0, 0, -1, 8, 0, 4, 0, 0, 0, 0, 0, -1, -1, 0, -1, -1, -1, 1, -2, -2, -3, -2, 0, 2, 0, 0, 0, 0, 4, 1, 1, 0} diff --git a/go.mod b/go.mod index 1a8a5e2..ce8e37b 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module code.rocket9labs.com/tslocum/tabula go 1.17 -require code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8 +require code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773 diff --git a/go.sum b/go.sum index c7ec23a..071f565 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8 h1:QefJxcMg2aneCZuoHPpnDOTsing1mehImilbyyT3SwU= -code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8/go.mod h1:tS60/VNAJphKvDBkSLQhKALa15msIAuWWfEKNc4oFZc= +code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773 h1:cu3FKYfk5WQcuxMXrqghHAmriyFiRCZ/8aUqIKI9yLU= +code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773/go.mod h1:tS60/VNAJphKvDBkSLQhKALa15msIAuWWfEKNc4oFZc=