#!/usr/bin/env ruby $:.push File.expand_path("../../lib", __FILE__) require 'deliver' require 'commander/import' HighLine.track_eof = false # Commander program :version, Deliver::VERSION program :description, 'CLI for \'Deliver\' - Automate uploading of app metadata, screenshots and app updates to Apple' program :help, 'Author', 'Felix Krause ' program :help, 'Website', 'http://felixkrause.at' program :help, 'GitHub', 'https://github.com/krausefx/deliver' program :help_formatter, :compact global_option('--verbose') { $verbose = true } default_command :run require 'deliver/commands' def deliver_path [enclosed_directory, Deliver::Deliverfile::Deliverfile::FILE_NAME].join('/') end # The directoy in which the Deliverfile and metadata should be created def enclosed_directory "." end