Sha256: 3096a5e1e6d5dbc87074e58d163f1409bbf705cfc96c332442239c839efd5a2e
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/env ruby if $PROGRAM_NAME == __FILE__ ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__) require 'rubygems' require 'bundler/setup' $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) end require 'claide' require 'cocoapods-playgrounds/gem_version' require 'cocoapods-playgrounds/workspace' class PlainInformative < StandardError include CLAide::InformativeError end class Informative < PlainInformative def message "[!] #{super}".ansi.red end end class Command < CLAide::Command self.command = 'carthage-play' self.description = 'Generate a Swift Playground for Carthage-enabled libraries' self.version = CocoapodsPlaygrounds::VERSION self.arguments = [CLAide::Argument.new('NAME', true)] def initialize(argv) @name = argv.shift_argument super end def validate! help! 'A library name is required.' if @name.nil? end def run generator = Pod::WorkspaceGenerator.new([@name], :carthage) generator.generate end end Command.run(ARGV)
Version data entries
6 entries across 6 versions & 1 rubygems