Automatically generate shell completions for command_kit CLI apps!
command_kit-completion 0.1.0 was released. This gem adds a rake task that automatically generates bash/zsh shell completion rules for command_kit CLI apps.
require 'command_kit/completion/task'
CommandKit::Completion::Task.new(
class_file: 'foo/cli',
class_name: 'Foo::CLI',
output_file: 'data/completion.sh'
)
Post a comment