Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect completion to sub-process #20

Open
frankcarey opened this issue Jan 14, 2016 · 0 comments
Open

Redirect completion to sub-process #20

frankcarey opened this issue Jan 14, 2016 · 0 comments

Comments

@frankcarey
Copy link
Contributor

It would be awesome if bash-completion could be redirected down into the subprocess.

Example command:

commands:
  complete:
    cmd: git

When I type ahoy complete <TAB>, I get nothing (process hangs because the current setup is actually calling the 'git' command instead of forwarding the to it.

Related issue about causing commands to actually run! urfave/cli#272

It looks like we might be able to simulate keypresses using echo -e "\t" | git
See : http://stackoverflow.com/questions/6264596/simulating-enter-keypress-in-bash-script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants