Class: WindClutter::CLI::Commands::Project::ConfigUpdate
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- WindClutter::CLI::Commands::Project::ConfigUpdate
- Includes:
- Util
- Defined in:
- lib/windclutter/cli/commands/project.rb
Overview
Update config
Instance Method Summary collapse
Instance Method Details
#call(key:, value:) ⇒ Object
87 88 89 90 91 92 93 94 |
# File 'lib/windclutter/cli/commands/project.rb', line 87 def call(key:, value:, **) active_project = Config.read('active_project') return puts 'No project specified. Select a project with `use` command.'.yellow if active_project.nil? puts "Updating #{key}:#{value}".green Config.update_project(active_project, key, value) end |