lib/tocer/cli/actions/config.rb in tocer-13.3.1 vs lib/tocer/cli/actions/config.rb in tocer-14.0.0

- old
+ new

@@ -3,13 +3,15 @@ module Tocer module CLI module Actions # Handles the config action. class Config - def initialize client: Configuration::Loader::CLIENT, container: Container + include Tocer::Import[:kernel, :logger] + + def initialize client: Configuration::Loader::CLIENT, **dependencies + super(**dependencies) @client = client - @container = container end def call selection case selection when :edit then edit @@ -18,18 +20,14 @@ end end private - attr_reader :client, :container + attr_reader :client def edit = kernel.system("$EDITOR #{client.current}") def view = kernel.system("cat #{client.current}") - - def kernel = container[__method__] - - def logger = container[__method__] end end end end