mirror of https://github.com/knative/client.git
remove unnecessary help message (#1152)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
This commit is contained in:
parent
cc6c7216d2
commit
3da89001a2
|
|
@ -17,6 +17,10 @@
|
|||
|===
|
||||
| | Description | PR
|
||||
|
||||
| 🐣
|
||||
| Removes unnecessary help message introduced for machine-readable outputs for commands which does not have -o url flag
|
||||
| https://github.com/knative/client/pull/1152[#1152]
|
||||
|
||||
| 🐣
|
||||
| Improve error handling in clients
|
||||
| https://github.com/knative/client/pull/1154[#1154]
|
||||
|
|
|
|||
|
|
@ -18,11 +18,10 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/cli-runtime/pkg/genericclioptions"
|
||||
v1alpha2 "knative.dev/eventing/pkg/apis/sources/v1alpha2"
|
||||
"knative.dev/eventing/pkg/apis/sources/v1alpha2"
|
||||
|
||||
"knative.dev/client/lib/printing"
|
||||
"knative.dev/client/pkg/kn/commands"
|
||||
|
|
@ -114,7 +113,6 @@ func NewAPIServerDescribeCommand(p *commands.KnParams) *cobra.Command {
|
|||
commands.AddNamespaceFlags(flags, false)
|
||||
flags.BoolP("verbose", "v", false, "More output.")
|
||||
machineReadablePrintFlags.AddFlags(command)
|
||||
command.Flag("output").Usage = fmt.Sprintf("Output format. One of: %s.", strings.Join(machineReadablePrintFlags.AllowedFormats(), "|"))
|
||||
return command
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ package ping
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"k8s.io/cli-runtime/pkg/genericclioptions"
|
||||
|
|
@ -113,7 +111,6 @@ func NewPingDescribeCommand(p *commands.KnParams) *cobra.Command {
|
|||
commands.AddNamespaceFlags(flags, false)
|
||||
flags.BoolP("verbose", "v", false, "More output.")
|
||||
machineReadablePrintFlags.AddFlags(command)
|
||||
command.Flag("output").Usage = fmt.Sprintf("Output format. One of: %s.", strings.Join(machineReadablePrintFlags.AllowedFormats(), "|"))
|
||||
return command
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,18 +16,14 @@ package trigger
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"k8s.io/cli-runtime/pkg/genericclioptions"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
v1beta1 "knative.dev/eventing/pkg/apis/eventing/v1beta1"
|
||||
"k8s.io/cli-runtime/pkg/genericclioptions"
|
||||
|
||||
"knative.dev/client/lib/printing"
|
||||
"knative.dev/client/pkg/kn/commands"
|
||||
"knative.dev/client/pkg/printers"
|
||||
"knative.dev/eventing/pkg/apis/eventing/v1beta1"
|
||||
)
|
||||
|
||||
var describeExample = `
|
||||
|
|
@ -114,7 +110,6 @@ func NewTriggerDescribeCommand(p *commands.KnParams) *cobra.Command {
|
|||
commands.AddNamespaceFlags(flags, false)
|
||||
flags.BoolP("verbose", "v", false, "More output.")
|
||||
machineReadablePrintFlags.AddFlags(command)
|
||||
command.Flag("output").Usage = fmt.Sprintf("Output format. One of: %s.", strings.Join(machineReadablePrintFlags.AllowedFormats(), "|"))
|
||||
return command
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue