mirror of https://github.com/knative/client.git
fix: Add mandatory --sink to ping source command's name (#903)
This commit is contained in:
parent
607e366bc2
commit
94e84d4ee0
|
|
@ -7,7 +7,7 @@ Create a ping source
|
||||||
Create a ping source
|
Create a ping source
|
||||||
|
|
||||||
```
|
```
|
||||||
kn source ping create NAME
|
kn source ping create NAME --sink SINK
|
||||||
```
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ func NewPingCreateCommand(p *commands.KnParams) *cobra.Command {
|
||||||
var sinkFlags flags.SinkFlags
|
var sinkFlags flags.SinkFlags
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "create NAME",
|
Use: "create NAME --sink SINK",
|
||||||
Short: "Create a ping source",
|
Short: "Create a ping source",
|
||||||
Example: `
|
Example: `
|
||||||
# Create a Ping source 'my-ping' which fires every two minutes and sends '{ value: "hello" }' to service 'mysvc' as a cloudevent
|
# Create a Ping source 'my-ping' which fires every two minutes and sends '{ value: "hello" }' to service 'mysvc' as a cloudevent
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue