Class: Takeltau::Completion

Inherits:
SubCommandBase show all
Includes:
LoggingModule
Defined in:
lib/takeltau/completion/cli.rb

Overview

tau completion

Instance Method Summary collapse

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#bashObject

Print bash completion code.



17
18
19
20
21
22
# File 'lib/takeltau/completion/cli.rb', line 17

def bash
  completion_bash = Takeltau::CLI.new.bash_fylla
  exit false if completion_bash == false
  say completion_bash.strip.split("\n").grep_v(/"--help"/).grep_v(/"-h"/).join("\n")
  true
end