Module: Mihari::Commands::Config
- Included in:
- Mihari::CLI::Config
- Defined in:
- lib/mihari/commands/config.rb
Overview
Config sub-commands
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mihari/commands/config.rb', line 10 def included(thor) thor.class_eval do desc "list", "List configs" def list configs = Services::ConfigSearcher.call data = configs.map { |config| Entities::Config.represent(config) } puts JSON.pretty_generate(data.as_json) end end end |