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