fix: Add mandatory --sink to ping source command's name (#903)

This commit is contained in:
Roland Huß 2020-06-23 09:45:26 +02:00 committed by GitHub
parent 607e366bc2
commit 94e84d4ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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