cli -p is now -d (#325)

Co-authored-by: LM <lemai>
This commit is contained in:
Leon Mai 2020-06-08 13:45:23 -07:00 committed by GitHub
parent 317aa4ff99
commit 4afe79fa1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -95,6 +95,7 @@ GET http://127.0.0.1:5000/17
Output:
```txt
```txt
{"id":"17","balance":2}
```
@ -106,11 +107,11 @@ Output:
On Linux, MacOS:
```sh
dapr publish -t withdraw -p '{"id": "17", "amount": 15 }'
dapr publish -t withdraw -d '{"id": "17", "amount": 15 }'
```
On Windows:
```sh
dapr publish -t withdraw -p "{\"id\": \"17\", \"amount\": 15 }"
dapr publish -t withdraw -d "{\"id\": \"17\", \"amount\": 15 }"
```
---
@ -118,11 +119,11 @@ On Windows:
Publish events using Dapr cli:
On Linux, MacOS:
```sh
dapr publish -t deposit -p '{"id": "17", "amount": 15 }'
dapr publish -t deposit -d '{"id": "17", "amount": 15 }'
```
On Windows:
```sh
dapr publish -t deposit -p "{\"id\": \"17\", \"amount\": 15 }"
dapr publish -t deposit -d "{\"id\": \"17\", \"amount\": 15 }"
```
---

View File

@ -103,12 +103,12 @@ Output:
Publish events using Dapr cli:
On Linux, MacOS:
```sh
dapr publish -t withdraw -p '{"id": "17", "amount": 15 }'
dapr publish -t withdraw -d '{"id": "17", "amount": 15 }'
```
On Windows:
```sh
dapr publish -t withdraw -p "{\"id\": \"17\", \"amount\": 15 }"
dapr publish -t withdraw -d "{\"id\": \"17\", \"amount\": 15 }"
```
---
@ -117,11 +117,11 @@ On Windows:
Publish events using Dapr cli:
On Linux, MacOS:
```sh
dapr publish -t deposit -p '{"id": "17", "amount": 15 }'
dapr publish -t deposit -d '{"id": "17", "amount": 15 }'
```
On Windows:
```sh
dapr publish -t deposit -p "{\"id\": \"17\", \"amount\": 15 }"
dapr publish -t deposit -d "{\"id\": \"17\", \"amount\": 15 }"
```
---