6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/lib/console.rb', line 6
def self.create_console
extend Prompt::DSL
group "Console commands"
desc "configure"
param :config_type , "Config type search for roots locations...", %(location show)
command "config :config_type" do |config_type|
Prompt.application.prompt = "#{Tools.configuration.console_prompt} console > ".light_blue
puts "Choise yuor config action .:".yellow
end
desc "history"
command "history" do
File.open(@history_file, 'r') do |f|
while line = f.gets
puts line
end
end
end
desc "test"
command "test" do
puts 'Im a test.!'.yellow
end
end
|