Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 530 Bytes

README.md

File metadata and controls

40 lines (31 loc) · 530 Bytes

psemu

A CLI tool for the Pub/Sub emulator.

Getting Started

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