Skip to content

Commit

Permalink
Added command_kit-completion (issue #22).
Browse files Browse the repository at this point in the history
* Defined the `CommandKit::Completion::Task` to generate
  `data/completions/ronin-repos` file.
* Added the `data/completions/ronin-repos` shell completion file to the
  gemspec generated files.
  • Loading branch information
postmodern committed Jan 4, 2024
1 parent bb5d76c commit cff9f43
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-repos
/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 @@ -33,4 +33,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 @@ -32,3 +32,10 @@ task :docs => :yard

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

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

generated_files:
- data/completions/ronin-repos
- man/ronin-repos.1
- man/ronin-repos-install.1
- man/ronin-repos-list.1
Expand Down

0 comments on commit cff9f43

Please sign in to comment.