Open tomclad opened 1 year ago
@tomclad thank you for the request. Installing Cement itself would not be able to create this file as we only package the Python library and rely on those tools for install (PIP, etc). That said there are some options:
cement-fish-completions
or similar. cement autocomplete setup --{fish,bash,zsh,etc}
that would make it possible for end user to set it up post-install. From a project perspective this makes the most sense in my opinion.This request is for Cement devtools, though just wanted to note there are some docs for guides on doing this for apps built on Cement and making note here that we should add something for fish there as well:
System Information
request I request you to include this cement completion file in cement. I am submitting this through issues is because I don't know how to modify and submit PR for cement. I am new to github and programming in general.
I request you to install cement.fish file in users ~/.config/fish/completions/ in future cement realeases. shellingham package can be used to detect the shell and if shell is found to be fish it can be installed at above location.
Issue I have been using cement developer tools for creating projects, plugins, extension, etc.
It was tedious to write commands all the time. so I have written fish shell completion for cement. According to fish shell this completion file only needs to saved at one of the following locations here I have put my cement completion file at ~/.config/fish/completions and it works as intended.
as it can be seen from below screenshot.
Below script not only supports command completions but also all option completion for cement itself also for generate sub-command. and also supports option completion for sub-commands of generate sub-command. :-)
Fish shell completion file
above file needs to be saved as follows. ~/.config/fish/completions/cement.fish
cheers. :=)