yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.25k stars 121 forks source link

Add Shell Completion Scripts #239

Open tomassliz opened 2 years ago

tomassliz commented 2 years ago

It would be great to provide shell completion scripts which allow you to press the tab key on your keyboard to autocomplete commands and arguments when typing a mint command.

One approach how to achieving this is to generate them. Installation instructions for different shells (bash, zsh, fish) and the underlying implementation is available in the swift-argument-parser repo.

yonaskolb commented 2 years ago

I think moving over to swift argument parser is probably a good idea, which also makes this easier, in terms of implementation and documentation.