ahoy icon indicating copy to clipboard operation
ahoy copied to clipboard

Redirect completion to sub-process

Open frankcarey opened this issue 9 years ago • 0 comments

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! https://github.com/codegangsta/cli/issues/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

frankcarey avatar Jan 14 '16 22:01 frankcarey