fix typo in source list-types examples (#684)

* Fix typo in kn source list-types example

* Update other list command examples
This commit is contained in:
Navid Shaikh 2020-02-21 17:08:06 +05:30 committed by GitHub
parent 963788b730
commit a44833c849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 26 additions and 8 deletions

View File

@ -22,7 +22,7 @@ kn revision list [name] [flags]
# List all revisions in JSON output format # List all revisions in JSON output format
kn revision list -o json kn revision list -o json
# List revision 'web' # List revision 'web'
kn revision list web kn revision list web
``` ```

View File

@ -20,7 +20,7 @@ kn route list NAME [flags]
# List route 'web' in namespace 'dev' # List route 'web' in namespace 'dev'
kn route list web -n dev kn route list web -n dev
# List all routes in yaml format # List all routes in YAML format
kn route list -o yaml kn route list -o yaml
``` ```

View File

@ -14,6 +14,9 @@ kn source apiserver list [flags]
``` ```
# List all ApiServer sources
kn source apiserver list
# List all ApiServer sources in YAML format # List all ApiServer sources in YAML format
kn source apiserver list -o yaml kn source apiserver list -o yaml
``` ```

View File

@ -14,7 +14,10 @@ kn source binding list [flags]
``` ```
# List all sink binding in YAML format # List all sink binidngs
kn source binding list
# List all sink bindings in YAML format
kn source binding list -o yaml kn source binding list -o yaml
``` ```

View File

@ -14,6 +14,9 @@ kn source cronjob list [flags]
``` ```
# List all CronJob sources
kn source cronjob list
# List all CronJob sources in YAML format # List all CronJob sources in YAML format
kn source cronjob list -o yaml kn source cronjob list -o yaml
``` ```

View File

@ -17,7 +17,7 @@ kn source list-types [flags]
# List available eventing source types # List available eventing source types
kn source list-types kn source list-types
# List available eventing source types in JSON format # List available eventing source types in YAML format
kn source list-types -o yaml kn source list-types -o yaml
``` ```

View File

@ -50,7 +50,7 @@ func NewRevisionListCommand(p *commands.KnParams) *cobra.Command {
# List all revisions in JSON output format # List all revisions in JSON output format
kn revision list -o json kn revision list -o json
# List revision 'web' # List revision 'web'
kn revision list web`, kn revision list web`,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -40,7 +40,7 @@ func NewRouteListCommand(p *commands.KnParams) *cobra.Command {
# List route 'web' in namespace 'dev' # List route 'web' in namespace 'dev'
kn route list web -n dev kn route list web -n dev
# List all routes in yaml format # List all routes in YAML format
kn route list -o yaml`, kn route list -o yaml`,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -30,6 +30,9 @@ func NewAPIServerListCommand(p *commands.KnParams) *cobra.Command {
Use: "list", Use: "list",
Short: "List ApiServer sources.", Short: "List ApiServer sources.",
Example: ` Example: `
# List all ApiServer sources
kn source apiserver list
# List all ApiServer sources in YAML format # List all ApiServer sources in YAML format
kn source apiserver list -o yaml`, kn source apiserver list -o yaml`,

View File

@ -30,7 +30,10 @@ func NewBindingListCommand(p *commands.KnParams) *cobra.Command {
Use: "list", Use: "list",
Short: "List sink bindings.", Short: "List sink bindings.",
Example: ` Example: `
# List all sink binding in YAML format # List all sink binidngs
kn source binding list
# List all sink bindings in YAML format
kn source binding list -o yaml`, kn source binding list -o yaml`,
RunE: func(cmd *cobra.Command, args []string) (err error) { RunE: func(cmd *cobra.Command, args []string) (err error) {

View File

@ -30,6 +30,9 @@ func NewCronJobListCommand(p *commands.KnParams) *cobra.Command {
Use: "list", Use: "list",
Short: "List CronJob sources.", Short: "List CronJob sources.",
Example: ` Example: `
# List all CronJob sources
kn source cronjob list
# List all CronJob sources in YAML format # List all CronJob sources in YAML format
kn source cronjob list -o yaml`, kn source cronjob list -o yaml`,

View File

@ -32,7 +32,7 @@ func NewListTypesCommand(p *commands.KnParams) *cobra.Command {
# List available eventing source types # List available eventing source types
kn source list-types kn source list-types
# List available eventing source types in JSON format # List available eventing source types in YAML format
kn source list-types -o yaml`, kn source list-types -o yaml`,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
namespace, err := p.GetNamespace(cmd) namespace, err := p.GetNamespace(cmd)