From 7392660dda724f30e0610f4129ca9b29ee3a65fb Mon Sep 17 00:00:00 2001 From: Postmodern Date: Fri, 26 Apr 2024 21:58:26 -0700 Subject: [PATCH] Added custom completion rules for completing repo names. --- Rakefile | 1 + data/completions/ronin-repos.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 data/completions/ronin-repos.yml diff --git a/Rakefile b/Rakefile index 64519ff..541176d 100644 --- a/Rakefile +++ b/Rakefile @@ -37,5 +37,6 @@ require 'command_kit/completion/task' CommandKit::Completion::Task.new( class_file: 'ronin/repos/cli', class_name: 'Ronin::Repos::CLI', + input_file: 'data/completions/ronin-repos.yml', output_file: 'data/completions/ronin-repos' ) diff --git a/data/completions/ronin-repos.yml b/data/completions/ronin-repos.yml new file mode 100644 index 0000000..75f02cb --- /dev/null +++ b/data/completions/ronin-repos.yml @@ -0,0 +1,11 @@ +--- +ronin-repos remove: + - $(ronin-repos list) +ronin-repos show: + - $(ronin-repos list) +ronin-repos info: + - $(ronin-repos list) +ronin-repos update: + - $(ronin-repos list) +ronin-repos up: + - $(ronin-repos list)