Class: Charyf::CLI

Inherits:
Object show all
Defined in:
lib/charyf/utils/commands/cli/cli_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.startObject



9
10
11
# File 'lib/charyf/utils/commands/cli/cli_command.rb', line 9

def self.start
  self.new.start
end

Instance Method Details

#startObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/charyf/utils/commands/cli/cli_command.rb', line 13

def start
  build_interface
  print_intro

  begin
    loop do
      detect request_input
    end
  rescue Interrupt
    puts "\n"
    puts 'Exiting CLI'
  end
end