bin/shelr in shelr-0.10.0 vs bin/shelr in shelr-0.11.0

- old
+ new

@@ -7,30 +7,41 @@ BASENAME = File.basename(__FILE__) HELP = <<-HELP Usage: #{BASENAME} command [arg] - - Commands: - setup API_KEY - setup + + Recording: + record - record new shellcast + + Publishing: + push last - publish last record push RECORD_ID - publish + + Replaying: + list - print list of records play last - play last local record play RECORD_ID - play local record play RECORD_URL - play remote record + Setup: + + setup API_KEY - set your API key + backend [ttyrec|script] - setup recorder backend + Visit: http://shelr.tv/ for more info. HELP case ARGV[0] when '-h', '--help' puts HELP when 'record' - Shelr::Recorder.record! + Shelr::Recorder.record! when 'list' Shelr::Player.list when 'play' if ARGV[1] if ARGV[1] =~ /^http:.*/ @@ -56,9 +67,16 @@ when 'setup' if ARGV[1] Shelr.api_key = ARGV[1] else puts "\n\tUsage: #{BASENAME} setup API_KEY\n\n" + exit + end +when 'backend' + if ARGV[1] + Shelr.backend = ARGV[1] + else + puts "\n\tUsage: #{BASENAME} backend [ttyrec|script]\n\n" exit end else puts HELP end