Skip to content

Commit d564296

Browse files
committed
incident-tap -> tap-incident
As this is the idiomatic naming convention for Singer taps.
1 parent 5f3bdd3 commit d564296

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
go-version: '1.20'
2626
-
2727
name: Build
28-
run: go run cmd/incident-tap/main.go --help
28+
run: go run cmd/tap-incident/main.go --help
2929
-
3030
name: Install ginkgo
3131
run: go install github.com/onsi/ginkgo/v2/ginkgo
@@ -36,7 +36,7 @@ jobs:
3636
id: tag
3737
name: Tag if new version
3838
run: |
39-
CURRENT_VERSION="v$(cat cmd/incident-tap/cmd/VERSION)"
39+
CURRENT_VERSION="v$(cat cmd/tap-incident/cmd/VERSION)"
4040
if [[ $(git tag -l "${CURRENT_VERSION}") == "${CURRENT_VERSION}" ]]; then
4141
echo "Version ${CURRENT_VERSION} is already released"
4242
exit 0

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:20230329 AS runtime
22

33
# goreleaser supplies this for us
4-
COPY incident-tap /usr/local/bin
4+
COPY tap-incident /usr/local/bin
55

6-
ENTRYPOINT ["/usr/local/bin/incident-tap"]
6+
ENTRYPOINT ["/usr/local/bin/tap-incident"]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PROG=bin/incident-tap
1+
PROG=bin/tap-incident
22
VERSION=$(shell git rev-parse --short HEAD)-dev
33
BUILD_COMMAND=go build -ldflags "-s -w -X main.Version=$(VERSION)"
44

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ macOS users can install the catalog using brew:
1010

1111
```console
1212
brew tap incident-io/homebrew-taps
13-
brew install incident-tap
13+
brew install tap-incident
1414
```
1515

1616
Otherwise, ensure that the go runtime is installed and then:
1717

1818
```console
19-
go install github.com/incident-io/singer-tap/cmd/incident-tap@latest
19+
go install github.com/incident-io/singer-tap/cmd/tap-incident@latest
2020
```
2121

2222
Once installed, see [documentation](docs) for example configurations.

client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func New(ctx context.Context, apiKey, apiEndpoint, version string, opts ...Clien
4444
WithRequestEditorFn(bearerTokenProvider.Intercept),
4545
// Add a user-agent so we can tell which version these requests came from.
4646
WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
47-
req.Header.Add("user-agent", fmt.Sprintf("incident-tap/%s", version))
47+
req.Header.Add("user-agent", fmt.Sprintf("tap-incident/%s", version))
4848
return nil
4949
}),
5050
}, opts...)
File renamed without changes.

cmd/incident-tap/cmd/app.go cmd/tap-incident/cmd/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
var logger kitlog.Logger
2626

2727
var (
28-
app = kingpin.New("incident-tap", "Extract data from incident.io for use with Singer").Version(versionStanza())
28+
app = kingpin.New("tap-incident", "Extract data from incident.io for use with Singer").Version(versionStanza())
2929

3030
// Global flags
3131
debug = app.Flag("debug", "Enable debug logging").Default("false").Bool()

cmd/incident-tap/main.go cmd/tap-incident/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55

66
"github.com/alecthomas/kingpin/v2"
7-
"github.com/incident-io/singer-tap/cmd/incident-tap/cmd"
7+
"github.com/incident-io/singer-tap/cmd/tap-incident/cmd"
88
)
99

1010
func main() {

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ configure the tap that looks like this:
3939
You can check this works by running:
4040

4141
```console
42-
$ incident-tap --discover --config=config.json
42+
$ tap-incident --discover --config=config.json
4343
```

docs/deploying.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
steps:
2525
- checkout
2626
- run:
27-
name: Install incident-tap
27+
name: Install tap-incident
2828
command: |
2929
VERSION="0.1.0"
3030
3131
echo "Installing importer v${VERSION}..."
3232
curl -L \
33-
-o "/tmp/incident-tap_${VERSION}_linux_amd64.tar.gz" \
34-
"https://github.com/incident-io/singer-tap/releases/download/v${VERSION}/incident-tap_${VERSION}_linux_amd64.tar.gz"
35-
tar zxf "/tmp/incident-tap_${VERSION}_linux_amd64.tar.gz" -C /tmp
33+
-o "/tmp/tap-incident_${VERSION}_linux_amd64.tar.gz" \
34+
"https://github.com/incident-io/singer-tap/releases/download/v${VERSION}/tap-incident_${VERSION}_linux_amd64.tar.gz"
35+
tar zxf "/tmp/tap-incident_${VERSION}_linux_amd64.tar.gz" -C /tmp
3636
- run:
3737
name: Sync
3838
command: |
39-
/tmp/incident-tap --config config.json
39+
/tmp/tap-incident --config config.json
4040
4141
workflows:
4242
version: 2
@@ -69,10 +69,10 @@ jobs:
6969
uses: actions/setup-go@v4
7070
with:
7171
go-version: "1.21"
72-
- name: Install incident-tap
72+
- name: Install tap-incident
7373
run: |
74-
go install github.com/incident-io/singer-tap/cmd/incident-tap@latest
74+
go install github.com/incident-io/singer-tap/cmd/tap-incident@latest
7575
- name: Sync
7676
run: |
77-
incident-tap --config config.json
77+
tap-incident --config config.json
7878
```

goreleaser.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# https://goreleaser.com
33

44
---
5-
project_name: incident-tap
5+
project_name: tap-incident
66

77
builds:
8-
- binary: incident-tap
9-
main: cmd/incident-tap/main.go
8+
- binary: tap-incident
9+
main: cmd/tap-incident/main.go
1010
goos:
1111
- darwin
1212
- linux
1313
goarch:
1414
- amd64
1515
- arm64
1616
ldflags: >
17-
-X github.com/incident-io/singer-tap/cmd/incident-tap/cmd.Version={{.Version}}
18-
-X github.com/incident-io/singer-tap/cmd/incident-tap/cmd.Commit={{.Commit}}
19-
-X github.com/incident-io/singer-tap/cmd/incident-tap/cmd.Date={{.Date}}
17+
-X github.com/incident-io/singer-tap/cmd/tap-incident/cmd.Version={{.Version}}
18+
-X github.com/incident-io/singer-tap/cmd/tap-incident/cmd.Commit={{.Commit}}
19+
-X github.com/incident-io/singer-tap/cmd/tap-incident/cmd.Date={{.Date}}
2020
-a
2121
-installsuffix cgo
2222
env:

0 commit comments

Comments
 (0)