Class: Ronin::CLI::Commands::Completion Private
- Inherits:
-
Core::CLI::CompletionCommand
- Object
- Core::CLI::CompletionCommand
- Ronin::CLI::Commands::Completion
- Defined in:
- lib/ronin/cli/commands/completion.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Manages the shell completion rule for ronin
and all other ronin-*
commands.
Usage
ronin completion []
Options
--print Prints the shell completion file
--install Installs the shell completion file
--uninstall Uninstalls the shell completion file
-h, --help Print help information
Examples
ronin completion --print
ronin completion --install
ronin completion --uninstall
Constant Summary collapse
- COMPLETION_FILES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
All shell completion files for
ronin
and the otherronin-*
commands. [ File.join(ROOT,'data','completions','ronin'), Repos::CLI::Commands::Completion.completion_file, Wordlists::CLI::Commands::Completion.completion_file, DB::CLI::Commands::Completion.completion_file, Fuzzer::CLI::Commands::Completion.completion_file, Web::CLI::Commands::Completion.completion_file, Vulns::CLI::Commands::Completion.completion_file, Payloads::CLI::Commands::Completion.completion_file, Exploits::CLI::Commands::Completion.completion_file, Listener::CLI::Commands::Completion.completion_file, Nmap::CLI::Commands::Completion.completion_file, Masscan::CLI::Commands::Completion.completion_file, Recon::CLI::Commands::Completion.completion_file ]
Instance Method Summary collapse
-
#install_completion_file ⇒ Object
private
Installs all completion files.
-
#print_completion_file ⇒ Object
private
Prints all completion files.
-
#uninstall_completion_file ⇒ Object
private
Uninstall all completion files.
Instance Method Details
#install_completion_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Installs all completion files.
98 99 100 101 102 |
# File 'lib/ronin/cli/commands/completion.rb', line 98 def install_completion_file COMPLETION_FILES.each do |completion_file| super(completion_file) end end |
#print_completion_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Prints all completion files.
89 90 91 92 93 |
# File 'lib/ronin/cli/commands/completion.rb', line 89 def print_completion_file COMPLETION_FILES.each do |completion_file| super(completion_file) end end |
#uninstall_completion_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Uninstall all completion files.
107 108 109 110 111 |
# File 'lib/ronin/cli/commands/completion.rb', line 107 def uninstall_completion_file COMPLETION_FILES.each do |completion_file| super(completion_file) end end |