RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in