Class: CodeUnion::Command::Config
- Defined in:
- lib/codeunion/command/config.rb
Overview
The built-in ‘codeunion config` command
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from CodeUnion::Command::Base
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/codeunion/command/config.rb', line 9 def run edit_config do if [:command] == "get" return config.get([:input].join("")) elsif [:command] == "set" config.set(*[:input]) elsif [:command] == "unset" config.unset([:input].join("")) end end nil end |