Class: Adaline::CLI

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

Overview

Adaline includes a command-line interface (CLI) to manage queues and messages

After installing Adaline, run adaline to see the available commands.

$ adaline
Commands:
  adaline help [COMMAND]  # Describe available commands or one specific command
adaline start           # Start server
adaline version         # Display version

To see the available options for a command, run adaline help COMMAND.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/adaline/cli.rb', line 19

def self.exit_on_failure?
  true
end

Instance Method Details

#startObject



24
25
26
27
28
# File 'lib/adaline/cli.rb', line 24

def start
  Commands::Start
    .new(options)
    .call
end

#versionObject



31
32
33
34
35
# File 'lib/adaline/cli.rb', line 31

def version
  Commands::Version
    .new(options)
    .call
end