kubectl/pkg
Brian Pursley a2ae001d8e cmd/get: Remove cmd argument from Run()
Removes the need to pass cmd as an argument to Run(). This change required reading the --sort-by flag in Complete() in a way similar to other flags.

This change allows the cobra.Command not to need to be passed throughout the completion code, which I updated as part of this commit.

It also is a step in the direction of the TODO comment requesting the removal of arguments passed to Run() and watch().

Kubernetes-commit: aa7a828f20b479a8a943d897224e8e76c3bb6cff
2022-12-23 14:56:59 -05:00
..
apps Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
cmd cmd/get: Remove cmd argument from Run() 2022-12-23 14:56:59 -05:00
describe kubectl: use v2 for hpa 2023-01-06 23:45:54 -05:00
drain kubectl/pkg/drain: Include namespace in evictPods return error 2023-02-07 13:10:30 -08:00
explain staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
generate Clean unused generators 2021-03-03 22:47:53 +01:00
metricsutil Added --sum flag to kubectl top pod 2021-09-16 09:28:30 -04:00
polymorphichelpers staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
proxy Remove ioutil from kubectl 2022-07-30 22:31:16 +09:00
rawhttp Close the used file 2021-06-03 15:36:20 +08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme kubectl: use v2 for hpa 2023-01-06 23:45:54 -05:00
util cmd/get: Remove cmd argument from Run() 2022-12-23 14:56:59 -05:00
validation test: fix ginkgolinter issues 2023-02-22 10:35:09 +01:00