From a2cd10ed248a2dadb2ccfe5e3c4498dfc5d05dd5 Mon Sep 17 00:00:00 2001 From: Sean Macdonald Date: Sat, 18 Mar 2023 20:33:09 -0400 Subject: [PATCH] fix: we want the binary to be called rebounce --- .vscode/launch.json | 2 +- README.md | 4 ++-- cmd/{ => rebounce}/main.go | 0 publish.sh | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) rename cmd/{ => rebounce}/main.go (100%) create mode 100755 publish.sh diff --git a/.vscode/launch.json b/.vscode/launch.json index e6439c1..fb7013b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "go", "request": "launch", "mode": "auto", - "program": "${workspaceFolder}/cmd/main.go", + "program": "${workspaceFolder}/cmd/rebounce/main.go", "args": ["--dir", "${workspaceFolder}/tmp"] } ] diff --git a/README.md b/README.md index 857cda5..edb8ed9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Rebouncer is a generic library that takes a noisy source of events, and produces It employes a plugin architecture that can allow it to be used flexibly whenever the fan-out/fan-in concurrency pattern is needed. -The canonical case is a file-watcher that discards events involving temp files and other artefacts, providing it's consumer with a clean, sane, and curated source of events. It is the engine behind [Fasthak](https://www.seanmacdonald.ca/posts/fasthak/). +The canonical case is a file-watcher that discards events involving temp files and other artefacts, providing its consumer with a clean, sane, and curated source of events. It is the engine behind [Fasthak](https://www.seanmacdonald.ca/posts/fasthak/). For the canonical case, rebouncer is also available as a binary. It takes a directory as an argument, producing SSE events to stdout. @@ -83,4 +83,4 @@ for niceEvent := range stateMachine.Subscribe() { } ``` -For more detailed docs, see [the docs](https://godoc.org/sean9999/go/rebouncer) \ No newline at end of file +For more detailed docs, see [the docs](https://godoc.org/sean9999/go/rebouncer) diff --git a/cmd/main.go b/cmd/rebounce/main.go similarity index 100% rename from cmd/main.go rename to cmd/rebounce/main.go diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..da32403 --- /dev/null +++ b/publish.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo input semver +read version + +echo GOPROXY=proxy.golang.org go list -m github.com/sean9999/rebouncer@${version} +