mirror of https://github.com/knative/client.git
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:
parent
963788b730
commit
a44833c849
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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`,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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`,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue