greymd / teip

Masking tape to help commands "do one thing well"
MIT License
569 stars 19 forks source link

Automatic generation of completion files #24

Closed greymd closed 1 year ago

greymd commented 4 years ago

structopt seems support generating completion files for bash/zsh. It can be generated in CI.

https://github.com/greymd/teip/pull/22#issuecomment-670999837

greymd commented 1 year ago

As of v2.2.0, all the completion files are generated by Structopt. Next step is to make CI generate automatically when new version release.

greymd commented 1 year ago

The completion files are better to be saved on the repository and should not become volatile ones in CI. To provide flexible ways for importing completion files is ideal. If the completion files on the repository, the file can be imported by plugin manager of shell such like docker-zsh-completion.

Other repositories such like bat are doing same way.

We won't fix this issue unless others make suggestions.