telepresence icon indicating copy to clipboard operation
telepresence copied to clipboard

Feature request: bash completion

Open cv opened this issue 6 years ago • 6 comments

Please consider using https://argcomplete.readthedocs.io/en/latest/ to generate an autocomplete script for bash. It's an easy win for teh fat-fingered among us :)

cv avatar Mar 28 '18 05:03 cv

See also how pip 10 does it, though using argcomplete is probably a lot less work.

ark3 avatar Apr 18 '18 21:04 ark3

This issue has been automatically marked as stale because it has not had recent activity. Issue Reporter: Is this still a problem? If not, please close this issue. Developers: Do you need more information? Is this a duplicate? What's the next step?

stale[bot] avatar May 29 '20 06:05 stale[bot]

This is still a feature we should add to Telepresence 2.

donnyyung avatar Jul 23 '21 14:07 donnyyung

Since we're using cobra, could we leverage https://github.com/spf13/cobra/blob/master/shell_completions.md?

jef avatar Jun 03 '22 17:06 jef

This feature would be greatly appreciated, and has already been implemented in kubectl and oc. IMO telepresence should have full feature parity with kubectl and oc's bash completions (e.g. tab complete service names).

Is there anything I could hack on or look into to help this effort?

sgreene570 avatar Jun 15 '22 16:06 sgreene570

@sgreene570 if you'd like to contribute, I believe you should start looking at our cobra command structure: https://github.com/telepresenceio/telepresence/tree/release/v2/pkg/client/cli

thallgren avatar Jun 17 '22 04:06 thallgren