twolfson / commander-completion

Shell completion for commander.js
The Unlicense
26 stars 4 forks source link

Bug in source code? #9

Closed tom10271 closed 1 year ago

tom10271 commented 1 year ago

https://github.com/twolfson/commander-completion/blob/master/lib/commander-completion.js#L108

    // If the program does not have a name, callback with an error
    if (completion.name) {

The documentation is far from easy to make things work and no command to generate completion script injecting to bash_profile make it painful to use this repo. Spent over 5 hours and it is still not working for me, bad luck.

tom10271 commented 1 year ago

Ok I solved my problems. There are a few things very important before it can work.