Skip to content

Commit

Permalink
Added command_kit-completion (issue #89).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jan 4, 2024
1 parent 2835611 commit aaa5993
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/coverage
/data/completions/ronin-web
/doc
/pkg
/man/*.[1-9]
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ group :development do
gem 'stackprof', require: false, platform: :mri
gem 'rubocop', require: false, platform: :mri
gem 'rubocop-ronin', require: false, platform: :mri

gem 'command_kit-completion', '~> 0.1', require: false
end
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ YARD::Rake::YardocTask.new

require 'kramdown/man/task'
Kramdown::Man::Task.new

require 'command_kit/completion/task'
CommandKit::Completion::Task.new(
class_file: 'ronin/web/cli',
class_name: 'Ronin::Web::CLI',
output_file: 'data/completions/ronin-web'
)
1 change: 1 addition & 0 deletions gemspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ metadata:
rubygems_mfa_required: 'true'

generated_files:
- data/completions/ronin-web
- man/ronin-web.1
- man/ronin-web-browser.1
- man/ronin-web-diff.1
Expand Down

0 comments on commit aaa5993

Please sign in to comment.