Sha256: fd0edf58c513fcfef6afdbd3ec2041449e49376152353894d9a8a1c4035a246d
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 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[:io] description "Specify user." on %w[-u --user], argument: "[HANDLE]" default { Container[:settings].git_hub_user } def initialize(processor: Processor.for_projects, **) super(**) @processor = processor end def call(handle = nil) = io.puts processor.call("users/#{handle || default}").to_json private attr_reader :processor end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-17.1.0 | lib/pennyworth/cli/actions/git_hub/user.rb |
pennyworth-17.0.0 | lib/pennyworth/cli/actions/git_hub/user.rb |