lib/pennyworth/cli/actions/git_hub/user.rb in pennyworth-16.7.0 vs lib/pennyworth/cli/actions/git_hub/user.rb in pennyworth-17.0.0
- old
+ new
@@ -6,23 +6,23 @@
module CLI
module Actions
module GitHub
# Handles the GitHub user action.
class User < Sod::Action
- include Import[:kernel]
+ include Import[:io]
description "Specify user."
on %w[-u --user], argument: "[HANDLE]"
- default { Container[:configuration].git_hub_user }
+ default { Container[:settings].git_hub_user }
def initialize(processor: Processor.for_projects, **)
super(**)
@processor = processor
end
- def call(handle = nil) = kernel.puts processor.call("users/#{handle || default}").to_json
+ def call(handle = nil) = io.puts processor.call("users/#{handle || default}").to_json
private
attr_reader :processor
end