Merge pull request #2206 from carlory/remove-useless-field
remove useless field from CommandGetOptions
This commit is contained in:
commit
7efc6bc2d6
|
@ -64,7 +64,7 @@ var (
|
||||||
// NewCmdGet New get command
|
// NewCmdGet New get command
|
||||||
func NewCmdGet(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Command {
|
func NewCmdGet(karmadaConfig KarmadaConfig, parentCommand string) *cobra.Command {
|
||||||
ioStreams := genericclioptions.IOStreams{In: getIn, Out: getOut, ErrOut: getErr}
|
ioStreams := genericclioptions.IOStreams{In: getIn, Out: getOut, ErrOut: getErr}
|
||||||
o := NewCommandGetOptions("karmadactl", ioStreams)
|
o := NewCommandGetOptions(ioStreams)
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "get [NAME | -l label | -n namespace] [flags]",
|
Use: "get [NAME | -l label | -n namespace] [flags]",
|
||||||
Short: getShort,
|
Short: getShort,
|
||||||
|
@ -137,10 +137,9 @@ type CommandGetOptions struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCommandGetOptions returns a GetOptions with default chunk size 500.
|
// NewCommandGetOptions returns a GetOptions with default chunk size 500.
|
||||||
func NewCommandGetOptions(parent string, streams genericclioptions.IOStreams) *CommandGetOptions {
|
func NewCommandGetOptions(streams genericclioptions.IOStreams) *CommandGetOptions {
|
||||||
return &CommandGetOptions{
|
return &CommandGetOptions{
|
||||||
PrintFlags: get.NewGetPrintFlags(),
|
PrintFlags: get.NewGetPrintFlags(),
|
||||||
CmdParent: parent,
|
|
||||||
IOStreams: streams,
|
IOStreams: streams,
|
||||||
ChunkSize: 500,
|
ChunkSize: 500,
|
||||||
ServerPrint: true,
|
ServerPrint: true,
|
||||||
|
|
Loading…
Reference in New Issue