mirror of https://github.com/knative/docs.git
eventing/samples/pubsub: fix copy paste issue (#828)
* eventing/samples/pubsub: fix copy paste issue See the line I changed, when I paste it to my zsh terminal, it thinks the closing double-quote is missing. Turns out the !" is a special sequence in zsh so it's better not to end a sample command like this. Source: https://unix.stackexchange.com/questions/497328/zsh-thinks-unterminated-quote-if-preceded-by-exclamation-mark/497335#497335 Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com> * Remove comma, match up quotation marks
This commit is contained in:
parent
996a43d378
commit
c4d9e58d78
|
@ -132,7 +132,7 @@ source is most useful as a bridge from other GCP services, such as
|
||||||
Publish messages to your GCP PubSub Topic:
|
Publish messages to your GCP PubSub Topic:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
gcloud pubsub topics publish testing --message="Hello World!"
|
gcloud pubsub topics publish testing --message="Hello world"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Verify
|
## Verify
|
||||||
|
@ -164,7 +164,7 @@ You should see log lines similar to:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"ID": "284375451531353",
|
"ID": "284375451531353",
|
||||||
"Data": "SGVsbG8gV29ybGQh",
|
"Data": "SGVsbG8sIHdvcmxk",
|
||||||
"Attributes": null,
|
"Attributes": null,
|
||||||
"PublishTime": "2018-10-31T00:00:00.00Z"
|
"PublishTime": "2018-10-31T00:00:00.00Z"
|
||||||
}
|
}
|
||||||
|
@ -175,10 +175,10 @@ you [base-64 decode](https://www.base64decode.org/) the `Data` field, you should
|
||||||
see the sent message:
|
see the sent message:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo "SGVsbG8gV29ybGQh" | base64 --decode
|
echo "SGVsbG8sIHdvcmxk" | base64 --decode
|
||||||
```
|
```
|
||||||
|
|
||||||
Results in: `Hello World!".
|
Results in: "Hello world"
|
||||||
|
|
||||||
For more information about the format of the message, see the
|
For more information about the format of the message, see the
|
||||||
[PubsubMessage documentation](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage).
|
[PubsubMessage documentation](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage).
|
||||||
|
|
Loading…
Reference in New Issue