Module: ThorInteractive
- Included in:
- Whatup::CLI::Dm, Whatup::CLI::Interactive
- Defined in:
- lib/whatup/cli/thor_interactive.rb
Class Method Summary collapse
-
.extended(base) ⇒ Object
Include the instance variable to method hook in our cli classes.
Instance Method Summary collapse
-
#banner(task, _namespace = false, subcommand = false) ⇒ Object
Don’t show app name in command help, i.e, instead of ‘app command desc`, use `command desc`.
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
#banner(task, _namespace = false, subcommand = false) ⇒ Object
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 task, _namespace = false, subcommand = false task.formatted_usage(self, false, subcommand).to_s end |