A CLI tool for the Pub/Sub emulator.
Install psemu
:
go install github.com/fterrag/psemu@latest
Run the Pub/Sub emulator:
gcloud beta emulators pubsub start --project test-project
Intialize the topic and subscription:
psemu init
Publish a message:
psemu publish -d 'Hello World!'
Publish a message (stdin):
echo 'Hello World! | psemu publish -d -
Receive messages:
psemu receive
See psemu
usage:
psemu help