gcp-pubsub-subscribe reads from the specified
GCP Pub/Sub subscription and writes each
message followed by a newline to stdout.
Installation
go install github.com/TV4/gcp-tools/cmd/gcp-pubsub-subscribe@latest
Usage
gcp-pubsub-subscribe [-credentials=<...>] -project=<...> -subscription=<...>
-ack
ack messages
-credentials string
path to a GCP credentials file
-project string
Pub/Sub project ID
-quiet
do not print messages (side-effect: more speed)
-subscription string
Pub/Sub subscription name
-version
shows version info
GCP credentials file:
https://developers.google.com/identity/protocols/application-default-credentials