fish-kubectl-completions icon indicating copy to clipboard operation
fish-kubectl-completions copied to clipboard

Thought about submitting this to oh-my-fish to increase visibility?

Open iggy opened this issue 7 years ago • 8 comments

I'm not sure if I'm the weird one here, but I almost always look for fish things in omf before resorting to google. I think this package being available via omf would be awesome.

iggy avatar Sep 05 '18 21:09 iggy

Or you could submit it upstream to the fish project itself.

xordspar0 avatar Dec 21 '18 16:12 xordspar0

Why would it be better to submit to the main fish project itself? If anything, it should probably be implemented in kubectl itself, not the core fish shell.

However it seems like both the issues raised in the kubernetes repo: https://github.com/kubernetes/kubernetes/issues/30763 as well as the kubectl repo: https://github.com/kubernetes/kubectl/issues/131 were closed without any reasonable solution.

The workaround here would probably be just to include it in fish package managers instead (like omf).

dotCipher avatar Jan 17 '19 18:01 dotCipher

I does make more sense for kubectl to support completion for fish. There is progress in that area. https://github.com/spf13/cobra/pull/754 is an open PR to cobra, kubectl's CLI library, that would add this support. https://github.com/kubernetes/kubectl/issues/131 was closed due to inactivity, but the change to cobra would allow it to move forward.

xordspar0 avatar Jan 17 '19 19:01 xordspar0

Ah ok, I missed that one. I stand corrected, thanks!

dotCipher avatar Jan 17 '19 20:01 dotCipher

Hi @dotCipher, I don't know if this is unusual in other platforms, but in fish, the practice is to do as suggested and submit completions to the main repository. The ideal would be if kubectl sent completions to fish-shell/fish-shell themselves, but there's nothing strange about users doing it.

jorgebucaran avatar Jan 19 '19 01:01 jorgebucaran

Yeah, I misunderstood, but that makes sense now. I guess we will have to wait on spf13/cobra#754 to finish before taking further action here.

dotCipher avatar Jan 22 '19 15:01 dotCipher

I guess we will have to wait on spf13/cobra#754 to finish before taking further action here.

Why? Re: submit completions to the main repository

arbourd avatar Jul 30 '19 22:07 arbourd

Why? Re: submit completions to the main repository

The underlying reason is that there is a preference for completions to be generated programmatically in a similar way to what is done for bash and zsh.

wwentland avatar Aug 02 '19 10:08 wwentland