cert_open_data_visualizer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,8 @@ module CertOpenDataVisualizer
|
|
15
15
|
second: "print_second_format",
|
16
16
|
app: "start-app",
|
17
17
|
city: "filter_by_city",
|
18
|
+
v: "version",
|
19
|
+
version: "version",
|
18
20
|
help: "print_help"}
|
19
21
|
|
20
22
|
return help if @argv[0].nil?
|
@@ -23,7 +25,7 @@ module CertOpenDataVisualizer
|
|
23
25
|
exec = commands[command]
|
24
26
|
|
25
27
|
return run_app if exec == "start-app"
|
26
|
-
|
28
|
+
return print_version if exec == "version"
|
27
29
|
return help if exec == "print_help"
|
28
30
|
return visualizer.send(exec, *argv) if exec
|
29
31
|
puts "Invalid command #{command}"
|
@@ -50,6 +52,10 @@ further use. Cache may be cleared using `clean`
|
|
50
52
|
EOF
|
51
53
|
end
|
52
54
|
|
55
|
+
def print_version
|
56
|
+
puts CertOpenDataVisualizer::VERSION
|
57
|
+
end
|
58
|
+
|
53
59
|
def run_app
|
54
60
|
CertOpenDataVisualizer::Frontend::App.run!
|
55
61
|
end
|