Skip to content

Commit 039bcf8

Browse files
committed
Improve CLI completion rules for worker names.
1 parent 3568457 commit 039bcf8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ require 'command_kit/completion/task'
6868
CommandKit::Completion::Task.new(
6969
class_file: 'ronin/recon/cli',
7070
class_name: 'Ronin::Recon::CLI',
71+
input_file: 'data/completions/ronin-recon.yml',
7172
output_file: 'data/completions/ronin-recon'
7273
)
7374

data/completions/ronin-recon.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
ronin-recon worker: &worker_ids
3+
- $(ronin-recon workers)
4+
ronin-recon run*-w: *worker_ids
5+
ronin-recon run*-e: *worker_ids
6+
ronin-recon run*-d: *worker_ids
7+
ronin-recon test: *worker_ids

0 commit comments

Comments
 (0)