summaryrefslogtreecommitdiff
path: root/exe
diff options
context:
space:
mode:
authorceldem <celdem@gitlab.com>2020-04-03 00:07:51 +0100
committerceldem <celdem@gitlab.com>2020-04-03 00:07:51 +0100
commit6d60bf9b59aef2b9032c58abb6aa62c4f204097c (patch)
treefb1889d5beee80f3422dc2a2896eb6ef7b218af5 /exe
parentd45fcf8b7339efaecfc358daa43019050c787fe2 (diff)
Rename cli to spandxcli
Diffstat (limited to 'exe')
-rwxr-xr-xexe/spandx10
1 files changed, 5 insertions, 5 deletions
diff --git a/exe/spandx b/exe/spandx
index 57aad5f..8aa4aaf 100755
--- a/exe/spandx
+++ b/exe/spandx
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
-lib_path = File.expand_path('../lib', __dir__)
-$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
-require 'spandx/cli'
+# lib_path = File.expand_path('../lib', __dir__)
+# $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
+require 'spandx/spandx_cli'
Signal.trap('INT') do
warn("\n#{caller.join("\n")}: interrupted")
@@ -11,8 +11,8 @@ Signal.trap('INT') do
end
begin
- Spandx::CLI.start
-rescue Spandx::CLI::Error => error
+ Spandx::SpandxCli.start
+rescue Spandx::SpandxCli::Error => error
puts "ERROR: #{error.message}"
exit 1
end