Class: Voicemaker::CLI

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

Class Method Summary collapse

Class Method Details

.runnerObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/voicemaker/cli.rb', line 11

def self.runner
  router = MisterBin::Runner.new version: VERSION,
    header: "Voicemaker Text-to-Speech",
    footer: "API Documentation: https://developer.voicemaker.in/apidocs"

  router.route "voices", to: Commands::VoicesCommand
  router.route "tts", to: Commands::TTSCommand
  router.route "new", to: Commands::NewCommand
  router.route "project", to: Commands::ProjectCommand

  router

end