Skip to content

Commit bcf8f1a

Browse files
author
柳丰
committed
feat: update cmd help
Signed-off-by: imneov <[email protected]>
1 parent 4e87a7a commit bcf8f1a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cmd/invoke.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ var (
4040

4141
var InvokeCmd = &cobra.Command{
4242
Use: "invoke",
43-
Short: "Invoke a method on a given Dapr application. Supported platforms: Self-hosted",
43+
Short: "Invoke a method on a given Dapr application. Supported platforms: Kubernetes and self-hosted",
4444
Example: `
45-
# Invoke a sample method on target app with POST Verb
45+
# Invoke a sample method on target app with POST Verb in self-hosted mode
4646
dapr invoke --app-id target --method sample --data '{"key":"value"}
4747
48-
# Invoke a sample method on target app with GET Verb
48+
# Invoke a sample method on target app with in Kubernetes
49+
dapr invoke -k --app-id target --method sample --data '{"key":"value"}
50+
51+
# Invoke a sample method on target app with GET Verb in self-hosted mode
4952
dapr invoke --app-id target --method sample --verb GET
5053
51-
# Invoke a sample method on target app with GET Verb using Unix domain socket
54+
# Invoke a sample method on target app with GET Verb using Unix domain socket in self-hosted mode
5255
dapr invoke --unix-domain-socket --app-id target --method sample --verb GET
5356
`,
5457
Run: func(cmd *cobra.Command, args []string) {

0 commit comments

Comments
 (0)