Class: Takeltau::Completion
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takeltau::Completion
- Includes:
- LoggingModule
- Defined in:
- lib/takeltau/completion/cli.rb
Overview
tau completion
Instance Method Summary collapse
-
#bash ⇒ Object
Print bash completion code.
Methods included from LoggingModule
Methods inherited from SubCommandBase
Instance Method Details
#bash ⇒ Object
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 |