📺 Add completions for fish shell#214
📺 Add completions for fish shell#214phatblat merged 1 commit intomas-cli:masterfrom motohedgehog:fish-completion
Conversation
Generated by 🚫 Danger |
|
@ylectric this is awesome! 🎉 I'm a fish shell user as well and this has been on my TODO list but I haven't gotten to it. Thanks! This repo actually has a copy of the mas homebrew formula so that things like this can get added as part of a normal PR. Eventually, I hope to automate the formula updates from these source files:
Each of those files needs a I would think this file would need to get copied into However, the fish docs say programs including completions should put them in the "vendor" dir which is system dependent. TL;DRTurns out that Homebrew already takes care of this (see carthage). |
|
@phatblat Sorry, my bad, I didn't realise that formulae copies reside in this repo as well. Homebrew ensures that completions are put into appropriate locations, so there's no fuss for us. I see |
|
Yes, several I'd love to see a script to auto-generate the shell completion files by parsing the If you want to grok the code, look in the MasKit/Commands/ directory. Each command will have a type conforming to |
|
@phatblat Thank you for a thorough explanation. It should be enough to get the very first version of completions, and I may think about auto-generation later. |
|
Jenkins failure looks unrelated, could you double check? |
|
Sorry! That was a temporary system issue on my build server. It's fixed now. I love the fancy uninstall completion. Is this PR ready to go now? |
|
@phatblat yes, absolutely :) |

This changeset adds completions for fish shell.

Once this PR is approved, I would be happy to submit another one to also support fish in Homebrew formula.