Class: Bora::CliBase
- Inherits:
-
Thor
- Object
- Thor
- Bora::CliBase
- Defined in:
- lib/bora/cli_base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.banner(command, _namespace = nil, subcommand = false) ⇒ Object
Fix for incorrect subcommand help.
- .subcommand_prefix ⇒ Object
Class Method Details
.banner(command, _namespace = nil, subcommand = false) ⇒ Object
Fix for incorrect subcommand help. See github.com/erikhuda/thor/issues/261
6 7 8 9 10 |
# File 'lib/bora/cli_base.rb', line 6 def self.(command, _namespace = nil, subcommand = false) subcommand = subcommand_prefix subcommand_str = subcommand ? " #{subcommand}" : '' "#{basename}#{subcommand_str} #{command.usage}" end |
.subcommand_prefix ⇒ Object
12 13 14 |
# File 'lib/bora/cli_base.rb', line 12 def self.subcommand_prefix nil end |