Sha256: f6254df551000314c42031fa1cbf325cfcb1b1c5cfde80096448b1c8e19bbee3

Contents?: true

Size: 728 Bytes

Versions: 6

Compression:

Stored size: 728 Bytes

Contents

#!/usr/bin/env ruby
require "spotify_osx_controller"

command = ARGV[0]
arg1 = ARGV[1]
case command.downcase 
	when 'play', 'start' 
		SpotifyOsxController.play arg1
	when 'play/pause'
		SpotifyOsxController.play_pause
	when 'pause', 'stop'
		SpotifyOsxController.pause
	when 'next'
		SpotifyOsxController.next
	when 'previous'
		SpotifyOsxController.previous
	when 'jump'
		SpotifyOsxController.jump arg1
	when 'forward'
		SpotifyOsxController.forward arg1
	when 'rewind'
		SpotifyOsxController.rewind arg1
	when 'volume'
		SpotifyOsxController.volume arg1
	when 'shuffle'
		SpotifyOsxController.shuffle
	when 'repeat'
		SpotifyOsxController.repeat
	when 'info'
		SpotifyOsxController.info
		exit
end

SpotifyOsxController.info

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spotify_osx_controller-0.1.5 bin/spotify_osx_controller
spotify_osx_controller-0.1.4 bin/spotify_osx_controller
spotify_osx_controller-0.1.3 bin/spotify_osx_controller
spotify_osx_controller-0.1.2 bin/spotify_osx_controller
spotify_osx_controller-0.1.1 bin/spotify_osx_controller
spotify_osx_controller-0.1.0 bin/spotify_osx_controller