Class: D2::Commands::Config
- Inherits:
-
D2::Command
- Object
- CLI::Kit::BaseCommand
- D2::Command
- D2::Commands::Config
- Defined in:
- lib/d2/commands/config.rb
Instance Method Summary collapse
Methods included from Utils::Formatter
Instance Method Details
#call(args, _name) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/d2/commands/config.rb', line 7 def call(args, _name) case args.shift when 'set' set(args) when 'unset' unset(args) when 'get' get(args) when 'list', nil logger.info D2::Config.to_s else logger.info "Unrecognized command. Please see usage\n#{self.class.help}" end end |