Skip to content

Commit 6f24dd7

Browse files
committed
Added command_kit-completion (issue #11).
1 parent fbedf00 commit 6f24dd7

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/coverage
2+
/data/completion/ronin-nmap
23
/doc
34
/pkg
45
/man/*.[1-9]

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ group :development do
3535
gem 'stackprof', require: false, platform: :mri
3636
gem 'rubocop', require: false, platform: :mri
3737
gem 'rubocop-ronin', require: false, platform: :mri
38+
39+
gem 'command_kit-completion', '~> 0.1', require: false
3840
end

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ task :docs => :yard
3232

3333
require 'kramdown/man/task'
3434
Kramdown::Man::Task.new
35+
36+
require 'command_kit/completion/task'
37+
CommandKit::Completion::Task.new(
38+
class_file: 'ronin/nmap/cli',
39+
class_name: 'Ronin::Nmap::CLI',
40+
output_file: 'data/completions/ronin-nmap'
41+
)

gemspec.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ metadata:
1919
rubygems_mfa_required: 'true'
2020

2121
generated_files:
22+
- data/completions/ronin-nmap
2223
- man/ronin-nmap.1
2324
- man/ronin-nmap-convert.1
2425
- man/ronin-nmap-dump.1

0 commit comments

Comments
 (0)