thecasualcoder / kube-fzf

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

execpod doesn't respect pod search query when not passing any command #19

Closed arunvelsriram closed 5 years ago

arunvelsriram commented 5 years ago

Reproducing the issue:

$ execpod some-pod-name

Actual behaviour:

fzf query is empty

Expected behaviour:

some-pod-name should be set as fzf query

Other details

However, it works as expected when passing command explicitly like execpod some-pod-name bash.

arunvelsriram commented 5 years ago

My bad. This is not an issue. It's because of the order of the args. The last arg is always command. So when giving pod search query, the command is mandatory.