Sha256: 96d33abf9357ad233aeacefe24905d586a2645b8e4748abd71fd4e945429186b

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

#!/usr/bin/env ruby

# frozen_string_literal: true

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib")

require "vlcraptor"

command = ARGV.shift

case command
when "autoplay"
  Vlcraptor.autoplay(ARGV.shift)
when "clear"
  Vlcraptor.clear
when "crossfade"
  Vlcraptor.crossfade(ARGV.shift)
when "history"
  Vlcraptor.history
when "list"
  Vlcraptor.list
when "pause"
  Vlcraptor.pause
when "play"
  Vlcraptor.play
when "player"
  Vlcraptor.player
when "remove"
  Vlcraptor.remove(ARGV.shift)
when "queue"
  Vlcraptor.queue(ARGV)
when "scrobble"
  Vlcraptor.scrobble(ARGV.shift)
when "skip"
  Vlcraptor.skip
when "stop"
  Vlcraptor.stop
when "swap"
  Vlcraptor.swap(ARGV)
else
  puts "Unknown command \"#{command}\":"
  puts "  autoplay on/off: continue playing tracks or stop at the end of current track"
  puts "  clear: clear queue"
  puts "  crossfade on/off: 5 second crossfade when changing tracks"
  puts "  history: display play history"
  puts "  list: list current queue"
  puts "  pause: pause current track (resume with play)"
  puts "  play: resume after pause/stop"
  puts "  player: start the player"
  puts "  queue paths: queue folders or files containing music tracks"
  puts "  remove a: remove track from queue at index position a"
  puts "  scrobble on/off: send track information to last.fm (requires an api key)"
  puts "  skip: skip the current track"
  puts "  stop: stop the player (resume with play)"
  puts "  swap a b: swap tracks in queue at index positions a and b"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vlcraptor-0.5.0 exe/vlcraptor
vlcraptor-0.4.0 exe/vlcraptor