Module: ThorInteractive

Included in:
Whatup::CLI::Dm, Whatup::CLI::Interactive
Defined in:
lib/whatup/cli/thor_interactive.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

Include the instance variable to method hook in our cli classes



29
30
31
# File 'lib/whatup/cli/thor_interactive.rb', line 29

def self.extended base
  base.send :include, ThorInstanceVariableHook
end

Instance Method Details

Don’t show app name in command help, i.e, instead of ‘app command desc`, use `command desc`



24
25
26
# File 'lib/whatup/cli/thor_interactive.rb', line 24

def banner task, _namespace = false, subcommand = false
  task.formatted_usage(self, false, subcommand).to_s
end