Sha256: cf854be3babde531d769893dca59e83c6d6000fbff044427e86aec78e81634e7

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

#!/usr/bin/env ruby

$:.push File.expand_path("../../lib", __FILE__)

require 'produce'
require 'commander'
require 'credentials_manager/appfile_config'
require 'produce/options'

HighLine.track_eof = false

class ProduceApplication
  include Commander::Methods

  def run
    program :version, Produce::VERSION
    program :description, 'CLI for \'produce\''
    program :help, 'Author', 'Felix Krause <produce@krausefx.com>'
    program :help, 'Website', 'https://fastlane.tools'
    program :help, 'GitHub', 'https://github.com/krausefx/produce'
    program :help_formatter, :compact

    always_trace!

    FastlaneCore::CommanderGenerator.new.generate(Produce::Options.available_options)

    command :create do |c|
      c.syntax = 'produce create'
      c.description = 'Creates a new app on iTunes Connect and the Apple Developer Portal'

      c.action do |args, options|
        Produce.config = FastlaneCore::Configuration.create(Produce::Options.available_options, options.__hash__)

        puts Produce::Manager.start_producing
      end
    end

    default_command :create

    run!
  end
end

begin
  FastlaneCore::UpdateChecker.start_looking_for_update('produce')
  ProduceApplication.new.run
ensure
  FastlaneCore::UpdateChecker.show_update_status('produce', Produce::VERSION)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
produce-0.5.1 bin/produce
produce-0.5.0 bin/produce
produce-0.4.3 bin/produce
produce-0.4.2 bin/produce
produce-0.4.1 bin/produce
produce-0.4.0 bin/produce