mirror of https://github.com/knative/client.git
Some fixes in `kn domain` help messages (#1283)
This commit is contained in:
parent
3f1a238124
commit
33e2c9fdf0
|
@ -6,6 +6,14 @@ Show details of a domain mapping
|
|||
kn domain describe NAME
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```
|
||||
|
||||
# Show details of for the domain 'hello.example.com'
|
||||
kn domain describe hello.example.com
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ kn domain list
|
|||
kn domain list
|
||||
|
||||
# List all domain mappings in JSON output format
|
||||
kn revision list -o json
|
||||
kn domain list -o json
|
||||
```
|
||||
|
||||
### Options
|
||||
|
|
|
@ -35,6 +35,9 @@ func NewDomainMappingDescribeCommand(p *commands.KnParams) *cobra.Command {
|
|||
cmd := &cobra.Command{
|
||||
Use: "describe NAME",
|
||||
Short: "Show details of a domain mapping",
|
||||
Example: `
|
||||
# Show details of for the domain 'hello.example.com'
|
||||
kn domain describe hello.example.com`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if len(args) != 1 {
|
||||
return errors.New("'kn domain describe' requires name of the domain mapping as single argument")
|
||||
|
|
|
@ -35,7 +35,7 @@ func NewDomainMappingListCommand(p *commands.KnParams) *cobra.Command {
|
|||
kn domain list
|
||||
|
||||
# List all domain mappings in JSON output format
|
||||
kn revision list -o json`,
|
||||
kn domain list -o json`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
namespace, err := p.GetNamespace(cmd)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue