lib/pennyworth/cli/actions/git_hub/user.rb in pennyworth-15.0.1 vs lib/pennyworth/cli/actions/git_hub/user.rb in pennyworth-15.0.2

- old
+ new

@@ -10,17 +10,19 @@ class User < Sod::Action include Import[:kernel] description "Specify user." - on %w[-u --user], argument: "[HANDLE]", default: Container[:configuration].git_hub_user + on %w[-u --user], argument: "[HANDLE]" + default { Container[:configuration].git_hub_user } + def initialize(processor: Processor.for_projects, **) super(**) @processor = processor end - def call(handle = default) = kernel.puts processor.call("users/#{handle}").to_json + def call(handle = nil) = kernel.puts processor.call("users/#{handle || default}").to_json private attr_reader :processor end