Class: AudioAddict::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/audio_addict/cli.rb

Class Method Summary collapse

Class Method Details

.routerObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/audio_addict/cli.rb', line 3

def self.router
  router = MisterBin::Runner.new version: VERSION,
    header: "AudioAddict Radio Utilities"

  router.route "login", to: Commands::LoginCmd
  router.route "set", to: Commands::SetCmd
  router.route "channels", to: Commands::ChannelsCmd
  router.route "now", to: Commands::NowCmd
  router.route "history", to: Commands::HistoryCmd
  router.route "vote", to: Commands::VoteCmd
  router.route "playlist", to: Commands::PlaylistCmd
  router.route "config", to: Commands::ConfigCmd
  router.route "log", to: Commands::LogCmd
  router.route "api", to: Commands::APICmd

  router
end