Generate shell completions for command_kit commands
MIT License
Adds a rake task that generates shell completion rules for a command_kit CLI. The rake task loads the CLI class and uses the completely library to generate the shell completion rules.
require 'command_kit/completion/task'
CommandKit::Completion::Task.new(
class_file: './examples/cli',
class_name: 'Foo::CLI',
output_file: 'completion.sh'
)
rake command_kit:completion
Copyright (c) 2023 Hal Brodigan
See {file:LICENSE.txt} for details.