Closed
Description
I noticed that where a git plugin can be as follows:
git-helloworld:
//usr/bin/env bash "$0" "$@" ; exit $?
echo "a plugin"
git helloworld
a plugin
(notice the use of //
instead of #!
) if you do the same for kubectl you get:
kubectl helloworld
exec format error
"
With this it is currently a must to have your script plugin start with "#!".
This is unfortunate since if you are using go or java single script notion they will not load.
They could out "#!" in header but all current IDE's will complain about the foreign "#!".
Better if kubectl would behave similar to git and support both "#!" and "//"
context: see https://github.com/maxandersen/k8s-cli-java for real world example of this.
Metadata
Metadata
Assignees
Labels
No labels