aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-08-09 09:59:28 +0200
committerMartin Polden <mpolden@mpolden.no>2021-08-09 09:59:28 +0200
commit8422364b2c5f3503052eecd7ad2e634fa7f79e20 (patch)
treed7395f58a8028ecb6cf14fadcfe96da1f8857da2
parent0176a1b9d8b95a61227b463d43d3f6754f15b3fc (diff)
all: Rename atbapi -> atb
-rw-r--r--Makefile2
-rw-r--r--README.md8
-rw-r--r--cmd/atb/main.go (renamed from cmd/atbapi/main.go)4
-rw-r--r--go.mod2
-rw-r--r--http/http.go2
-rw-r--r--http/http_test.go2
-rw-r--r--http/types.go2
-rw-r--r--http/types_test.go2
8 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 21d840f..cf22a0c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
XGOARCH := amd64
XGOOS := linux
-XBIN := $(XGOOS)_$(XGOARCH)/atbapi
+XBIN := $(XGOOS)_$(XGOARCH)/atb
all: test vet lint install
diff --git a/README.md b/README.md
index 4cf0840..438c1b5 100644
--- a/README.md
+++ b/README.md
@@ -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() {
diff --git a/go.mod b/go.mod
index 0998184..e2a7581 100644
--- a/go.mod
+++ b/go.mod
@@ -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) {