Sha256: ccbf85ed00f5c6626534aa4ea7c550abc4d096ef924e507bdf225933221b1a01
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 Bytes
Contents
module Pod class Command class Playgrounds < Command self.summary = 'Generates a Swift Playground for any Pod.' self.description = <<-DESC Generates a Swift Playground for any Pod. DESC self.arguments = [CLAide::Argument.new('NAMES', true)] def self.options [ ['--no-install', 'Skip running `pod install`'] ] end def initialize(argv) arg = argv.shift_argument @names = arg.split(',') if arg @install = argv.flag?('install', true) super end def validate! super help! 'At least one Pod name is required.' unless @names end def run # TODO: Pass platform and deployment target from configuration generator = WorkspaceGenerator.new(@names) generator.generate(@install) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-playgrounds-1.1.0 | lib/cocoapods-playgrounds/command/playgrounds.rb |