Class: Indoctrinatr::Tools::Commands::BashCompletions

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/indoctrinatr/tools/commands/bash_completions.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/indoctrinatr/tools/commands/bash_completions.rb', line 7

def call(**)
  puts <<~HEREDOC
    Add this to your .bashrc (and open up a new shell):

    complete -F get_indoctrinatr_targets indoctrinatr
    function get_indoctrinatr_targets()
    {
      COMPREPLY=(`indoctrinatr completions`)
    }
  HEREDOC
end