class DuoSplitter::Commands::OverlappingCommand

Public Instance Methods

run() click to toggle source
# File lib/duo_splitter/commands/overlapping_command.rb, line 6
def run
  Services::CreateOverlappingSentences.new(context: context).run
  print_done
end

Private Instance Methods

default_output_dir() click to toggle source
# File lib/duo_splitter/commands/overlapping_command.rb, line 13
def default_output_dir
  Pathname.new('~/Desktop/DUO 3.0 (Overlapping)').expand_path
end
parse_options(argv) click to toggle source
# File lib/duo_splitter/commands/overlapping_command.rb, line 17
def parse_options(argv)
  parser.banner = %(Usage: #{parser.program_name} [options] overlapping "01 Track 01.wav" ... "45 Track 45.wav")

  on_output_dir
  on_output_format
  on_output_intro
  on_prefix_section_number
  on_show_progress
  on_ffmpeg_path
  on_sox_path
  on_notification_sound_path

  parse!(argv)

  after_parse
end