diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-08-09 09:59:28 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-08-09 09:59:28 +0200 |
commit | 8422364b2c5f3503052eecd7ad2e634fa7f79e20 (patch) | |
tree | d7395f58a8028ecb6cf14fadcfe96da1f8857da2 | |
parent | 0176a1b9d8b95a61227b463d43d3f6754f15b3fc (diff) |
all: Rename atbapi -> atb
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | cmd/atb/main.go (renamed from cmd/atbapi/main.go) | 4 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | http/http.go | 2 | ||||
-rw-r--r-- | http/http_test.go | 2 | ||||
-rw-r--r-- | http/types.go | 2 | ||||
-rw-r--r-- | http/types_test.go | 2 |
8 files changed, 12 insertions, 12 deletions
@@ -1,6 +1,6 @@ XGOARCH := amd64 XGOOS := linux -XBIN := $(XGOOS)_$(XGOARCH)/atbapi +XBIN := $(XGOOS)_$(XGOARCH)/atb all: test vet lint install @@ -1,6 +1,6 @@ -# atbapi +# atb -![Build Status](https://github.com/mpolden/atbapi/workflows/ci/badge.svg) +![Build Status](https://github.com/mpolden/atb/workflows/ci/badge.svg) A minimal API for bus data in Trondheim, Norway. This API proxies requests to the AtB public API and converts the responses into a sane JSON format. @@ -20,9 +20,9 @@ The API aims to be compatible with [BusBuddy](https://github.com/norrs/busbuddy) ## Usage ``` -$ atbapi -h +$ atb -h Usage: - atbapi [OPTIONS] + atb [OPTIONS] Application Options: -l, --listen=ADDRESS Listen address (:8080) diff --git a/cmd/atbapi/main.go b/cmd/atb/main.go index 97c8846..5fa11bf 100644 --- a/cmd/atbapi/main.go +++ b/cmd/atb/main.go @@ -5,8 +5,8 @@ import ( "log" "time" - "github.com/mpolden/atbapi/atb" - "github.com/mpolden/atbapi/http" + "github.com/mpolden/atb/atb" + "github.com/mpolden/atb/http" ) func init() { @@ -1,4 +1,4 @@ -module github.com/mpolden/atbapi +module github.com/mpolden/atb go 1.13 diff --git a/http/http.go b/http/http.go index b4b5f11..eeeb9c2 100644 --- a/http/http.go +++ b/http/http.go @@ -10,7 +10,7 @@ import ( "strconv" "time" - "github.com/mpolden/atbapi/atb" + "github.com/mpolden/atb/atb" cache "github.com/pmylund/go-cache" ) diff --git a/http/http_test.go b/http/http_test.go index c447b06..c8d2293 100644 --- a/http/http_test.go +++ b/http/http_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/mpolden/atbapi/atb" + "github.com/mpolden/atb/atb" ) func atbTestServer() *httptest.Server { diff --git a/http/types.go b/http/types.go index eaadd04..17d46cf 100644 --- a/http/types.go +++ b/http/types.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/mpolden/atbapi/atb" + "github.com/mpolden/atb/atb" ) // BusStops represents a list of bus stops. diff --git a/http/types_test.go b/http/types_test.go index b26d00e..eac8b53 100644 --- a/http/types_test.go +++ b/http/types_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/mpolden/atbapi/atb" + "github.com/mpolden/atb/atb" ) func TestConvertBusStop(t *testing.T) { |