go-swagger icon indicating copy to clipboard operation
go-swagger copied to clipboard

Add `complete -C swagger swagger` support

Open rwxrob opened this issue 2 years ago • 1 comments

Problem statement

As a command line utility, swagger could easily benefit from detection completion context to sensing the COMP_LINE environment variable allowing all the completion code to be maintained internal as Go code and allowing bash users (the standard Linux shell) to simply add completion with a single complete -C swagger swagger command instead of sources several lines upon each new shell instantiation.

For more information, please see the "Programmable Completion" section of the bash man page.

Thank you.

😊 I'm happy to work on this if there is enough interest.

rwxrob avatar Jul 01 '22 17:07 rwxrob

yes please add this

casualjim avatar Jul 01 '22 17:07 casualjim