Sha256: 08b8e1db4a217429c455260b2a496bf99bf47d68460bb6495b6b20a7fa7bb880
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
#!/usr/bin/env ruby require 'pry' require 'thor' # Adding the lib directory to the Load Path of Ruby $:.unshift File.expand_path("../../lib", __FILE__) require 'overrides/hash' $erika_options = {} class Options < Thor desc "g", "Generate movie" method_option :output, :aliases => "-o", :desc => "Output path; where to generate output movie" method_option :source, :aliases => "-s", :desc => "Input path; folder path where the images are located" method_option :audio, :aliases => "-a", :desc => "Audio path; the path to bg audio" method_option :transition_duration, :aliases => "-t", :desc => "Transition animation duration between two images" method_option :slide_duration, :aliases => "-S", :desc => "Slide duration between two images" def g # $erika_options.merge({output_dir: File.expand_path(options[:o])}) if options[:o] # $erika_options.merge({source_dir: File.expand_path(options[:s]), # source_files: ''}) if options[:s] # $erika_options.merge({audio: File.expand_path(options[:a])}) if options[:a] $erika_options = options.to_o require 'erika' erika = Erika::SlideShow.new erika.start end end Options.start(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erika-0.1.2 | exe/erika |