kontena / mortar

The manifest shooter for Kubernetes
Apache License 2.0
145 stars 14 forks source link

Add shell autocompletions #46

Closed kke closed 6 years ago

kke commented 6 years ago

Shell autocompletions

jnummelin commented 6 years ago

Maybe add also instructions how users can get it to work?

kke commented 6 years ago

It would be possible to write a lib/rubygems_plugin.rb that would get installed when using rake install (which nobody does) and/or a Makefile that would do it.

Or spec.post_install_message = "To install bash-completions, etcetc"

Also maybe we should make a brew formula.

kke commented 6 years ago

I wrote an installer. I put it in lib/mortar/bash_completion_installer.rb that gets required from bin/mortar if you use mortar install-completions.

Of course it could be a regular subcommand or just instructions how to install manually.

jnummelin commented 6 years ago

I'd rather see it as a regular sub-command.