diff --git a/README.md b/README.md index 8bc11de..58732ca 100644 --- a/README.md +++ b/README.md @@ -36,5 +36,5 @@ func main() { } ``` -See [internal/cmd/cmd.go](internal/cmd/cmd.go) and +See [examples/tnd/main.go](examples/tnd/main.go) and [scripts/tnd.sh](scripts/tnd.sh) for a complete example. diff --git a/cmd/tnd/main.go b/cmd/tnd/main.go deleted file mode 100644 index f6f09f4..0000000 --- a/cmd/tnd/main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "github.com/T-Systems-MMS/tnd/internal/cmd" - -func main() { - cmd.Run() -} diff --git a/internal/cmd/cmd.go b/examples/tnd/main.go similarity index 95% rename from internal/cmd/cmd.go rename to examples/tnd/main.go index f191c4d..554a2c7 100644 --- a/internal/cmd/cmd.go +++ b/examples/tnd/main.go @@ -1,4 +1,4 @@ -package cmd +package main import ( "flag" @@ -36,8 +36,7 @@ func parseCommandLine() { } } -// Run is the main entry point -func Run() { +func main() { // set log level log.SetLevel(log.DebugLevel) diff --git a/scripts/tnd.sh b/scripts/tnd.sh index a4db37c..693e1ce 100755 --- a/scripts/tnd.sh +++ b/scripts/tnd.sh @@ -12,5 +12,5 @@ HTTP2="https://your.second.trusted.http.server.com:443" HASH2="SHA256 hash of HTTP2" SERV2="$HTTP2:$HASH2" -go run ./cmd/tnd \ +go run ./examples/tnd \ -httpsservers "$SERV1,$SERV2"