Sha256: 8a16d88143937326b522e3082d4e3d60cde6529f714fc5ade0faa8a79ddcd065
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true require "sod" module Pennyworth module CLI module Actions module GitHub # Handles the GitHub user action. class User < Sod::Action include Import[:kernel] description "Specify 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 private attr_reader :processor end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-15.0.1 | lib/pennyworth/cli/actions/git_hub/user.rb |
pennyworth-15.0.0 | lib/pennyworth/cli/actions/git_hub/user.rb |