Skip to content

Commit

Permalink
fix: --data has an unclosed single quote
Browse files Browse the repository at this point in the history
Signed-off-by: 柳丰 <[email protected]>
  • Loading branch information
imneov committed Apr 10, 2022
1 parent 8df3681 commit 525921c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ var InvokeCmd = &cobra.Command{
Short: "Invoke a method on a given Dapr application. Supported platforms: Kubernetes and self-hosted",
Example: `
# Invoke a sample method on target app with POST Verb in self-hosted mode
dapr invoke --app-id target --method sample --data '{"key":"value"}
dapr invoke --app-id target --method sample --data '{"key":"value"}'
# Invoke a sample method on target app with in Kubernetes
dapr invoke -k --app-id target --method sample --data '{"key":"value"}
dapr invoke -k --app-id target --method sample --data '{"key":"value"}'
# Invoke a sample method on target app with GET Verb in self-hosted mode
dapr invoke --app-id target --method sample --verb GET
Expand Down

0 comments on commit 525921c

Please sign in to comment.