Sha256: a94e11d6f1d7c297c34009fe80c8e6b1802e67141a6835ad026e04ba6bd112a5
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true require "sod" module Pennyworth module CLI module Actions module GitHub # Handles the GitHub user action. class Organization < Sod::Action include Import[:io] description "Specify organization." on %w[-o --organization], argument: "[HANDLE]" default { Container[:settings].git_hub_organization } def initialize(processor: Processor.for_projects, **) super(**) @processor = processor end def call(handle = nil) = io.puts processor.call("orgs/#{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/organization.rb |
pennyworth-17.0.0 | lib/pennyworth/cli/actions/git_hub/organization.rb |