Class: SearchKit::CLI
- Inherits:
-
Thor
- Object
- Thor
- SearchKit::CLI
- Includes:
- Messaging
- Defined in:
- lib/search_kit/cli.rb
Instance Method Summary collapse
Methods included from Messaging
Instance Method Details
#config(setting, value = nil) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/search_kit/cli.rb', line 20 def config(setting, value = nil) if value SearchKit.set_config(setting, value) info "Set #{setting}: #{value}" else value = SearchKit.show_config(setting) info "SearchKit settings for #{setting}:" info " - ~/.search-kit/config.yml: #{value}" info " - ENV: #{ENV.fetch(setting.upcase, "Not set")}" info " - Runtime: #{SearchKit.config.send(setting)}" end end |