thecasualcoder / kube-fzf

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

[Feature Request] pfpod should open in browser after port-forwarding #11

Closed dineshba closed 5 years ago

dineshba commented 5 years ago

After successful port forward with given $PORT using pfpod, Can we open localhost:$PORT in the browser.

May be with a flag

 pfpod -n namespace --open $PORT
arunvelsriram commented 5 years ago

Fixed by @dineshba in #14

jskswamy commented 5 years ago

@dineshba @arunvelsriram can the port information can be copied to clipboard by default?

dineshba commented 5 years ago

@jskswamy @arunvelsriram Can we make as default ? Or can we add another flag ?

jskswamy commented 5 years ago

@dineshba I prefer it to be a default option rather than additional flag, most of the time next immediate action would be to use the port forwarded info for doing cURL or something similar

arunvelsriram commented 5 years ago

I think both are fine.

One more point I wanted to discuss is that we have to make sure open and copy to clipboard works on Mac as well as Linux.

jskswamy commented 5 years ago

@arunvelsriram we could usexclip for Linux and pbcopy for Mac but one catch is xclip is not available in all distro by default.