Skip to content

Commit 1ae1153

Browse files
committed
Fix syntax highlighting in several READMEs.
1 parent 39b88bf commit 1ae1153

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

functions/datastore/README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,41 @@ View the [source code][code].
1414

1515
1. Clone this repository:
1616

17-
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
18-
cd nodejs-docs-samples/functions/datastore
17+
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
18+
cd nodejs-docs-samples/functions/datastore
1919

2020
1. Create a Cloud Storage Bucket to stage our deployment:
2121

22-
gsutil mb gs://<your-bucket-name>
22+
gsutil mb gs://<your-bucket-name>
2323

2424
1. Ensure the Cloud Datastore API is enabled:
2525

2626
[Click here to enable the Cloud Datastore API](https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com&redirect=https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/datastore)
2727

2828
1. Deploy the "ds-get" function with an HTTP trigger:
2929

30-
gcloud alpha functions deploy ds-get --bucket <your-bucket-name> --trigger-http --entry-point get
30+
gcloud alpha functions deploy ds-get --bucket <your-bucket-name> --trigger-http --entry-point get
3131

3232
1. Deploy the "ds-set" function with an HTTP trigger:
3333

34-
gcloud alpha functions deploy ds-set --bucket <your-bucket-name> --trigger-http --entry-point set
34+
gcloud alpha functions deploy ds-set --bucket <your-bucket-name> --trigger-http --entry-point set
3535

3636
1. Deploy the "ds-del" function with an HTTP trigger:
3737

38-
gcloud alpha functions deploy ds-del --bucket <your-bucket-name> --trigger-http --entry-point del
38+
gcloud alpha functions deploy ds-del --bucket <your-bucket-name> --trigger-http --entry-point del
3939

4040
1. Call the "ds-set" function to create a new entity:
4141

42-
gcloud alpha functions call ds-set --data '{"kind":"gcf-test","key":"foobar","value":{"message": "Hello World!"}}'
42+
gcloud alpha functions call ds-set --data '{"kind":"gcf-test","key":"foobar","value":{"message": "Hello World!"}}'
4343

4444
1. Call the "ds-get" function to read the newly created entity:
4545

46-
gcloud alpha functions call ds-get --data '{"kind":"gcf-test","key":"foobar"}'
46+
gcloud alpha functions call ds-get --data '{"kind":"gcf-test","key":"foobar"}'
4747

4848
1. Call the "ds-del" function to delete the entity:
4949

50-
gcloud alpha functions call ds-del --data '{"kind":"gcf-test","key":"foobar"}'
50+
gcloud alpha functions call ds-del --data '{"kind":"gcf-test","key":"foobar"}'
5151

5252
1. Call the "ds-get" function again to verify it was deleted:
5353

54-
gcloud alpha functions call ds-get --data '{"kind":"gcf-test","key":"foobar"}'
54+
gcloud alpha functions call ds-get --data '{"kind":"gcf-test","key":"foobar"}'

functions/gcs/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ View the [source code][code].
1414

1515
1. Clone this repository:
1616

17-
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
18-
cd nodejs-docs-samples/functions/gcs
17+
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
18+
cd nodejs-docs-samples/functions/gcs
1919

2020
1. Create a Cloud Storage Bucket to stage our deployment:
2121

22-
gsutil mb gs://<your-bucket-name>
22+
gsutil mb gs://<your-bucket-name>
2323

2424
1. Upload the sample file to the bucket:
2525

26-
gsutil cp sample.txt gs://<your-bucket-name>
26+
gsutil cp sample.txt gs://<your-bucket-name>
2727

2828
1. Deploy the "wordCount" function with an HTTP trigger:
2929

30-
gcloud alpha functions deploy wordCount --bucket <your-bucket-name> --trigger-http --entry-point map
30+
gcloud alpha functions deploy wordCount --bucket <your-bucket-name> --trigger-http --entry-point map
3131

3232
1. Call the "wordCount" function using the sample file:
3333

34-
gcloud alpha functions call wordCount --data '{"bucket":"<your-bucket-name>","file":"sample.txt"}'
34+
gcloud alpha functions call wordCount --data '{"bucket":"<your-bucket-name>","file":"sample.txt"}'
3535

3636
You should see something like this in your console
3737

functions/pubsub/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,33 @@ to setup Cloud Functions for your project.
1616

1717
1. Clone this repository:
1818

19-
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
20-
cd nodejs-docs-samples/functions/pubsub
19+
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
20+
cd nodejs-docs-samples/functions/pubsub
2121

2222
1. Create a Cloud Pub/Sub topic (if you already have one you want to use, you
2323
can skip this step):
2424

25-
gcloud alpha pubsub topics create <your-topic-name>
25+
gcloud alpha pubsub topics create <your-topic-name>
2626

2727
1. Create a Cloud Storage Bucket to stage our deployment:
2828

29-
gsutil mb gs://<your-bucket-name>
29+
gsutil mb gs://<your-bucket-name>
3030

3131
1. Deploy the "publish" function with an HTTP trigger
3232

33-
gcloud alpha functions deploy publish --bucket <your-bucket-name> --trigger-http
33+
gcloud alpha functions deploy publish --bucket <your-bucket-name> --trigger-http
3434

3535
1. Deploy the "subscribe" function with the Pub/Sub topic as a trigger
3636

37-
gcloud alpha functions deploy subscribe --bucket <your-bucket-name> --trigger-topic <your-topic-name>
37+
gcloud alpha functions deploy subscribe --bucket <your-bucket-name> --trigger-topic <your-topic-name>
3838

3939
1. Call the "publish" function:
4040

41-
gcloud alpha functions call publish --data '{"topic":"<your-topic-name>","message":"Hello World!"}'
41+
gcloud alpha functions call publish --data '{"topic":"<your-topic-name>","message":"Hello World!"}'
4242

4343
1. Check the logs for the "subscribe" function:
4444

45-
gcloud alpha functions get-logs subscribe
45+
gcloud alpha functions get-logs subscribe
4646

4747
You should see something like this in your console
4848
```

0 commit comments

Comments
 (0)