thecasualcoder / kube-fzf

Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods.
MIT License
199 stars 30 forks source link

Replace the kube-fzf process with kubectl process using exec #23

Open aswinkarthik opened 4 years ago

aswinkarthik commented 4 years ago

This is a request for opinion.

Instead of invoking kubectl commands inside the shell script, can we do an exec so that the process is replaced with the kubectl command that is being run at the end. This means in ps only the kubectl command is listed and the shell command is not.

arunvelsriram commented 4 years ago

Can you provide an example of where to use exec?