diff options
| author | celdem <celdem@gitlab.com> | 2020-04-03 00:07:51 +0100 |
|---|---|---|
| committer | celdem <celdem@gitlab.com> | 2020-04-03 00:07:51 +0100 |
| commit | 6d60bf9b59aef2b9032c58abb6aa62c4f204097c (patch) | |
| tree | fb1889d5beee80f3422dc2a2896eb6ef7b218af5 | |
| parent | d45fcf8b7339efaecfc358daa43019050c787fe2 (diff) | |
Rename cli to spandxcli
| -rwxr-xr-x | exe/spandx | 10 | ||||
| -rw-r--r-- | lib/spandx/spandx_cli.rb (renamed from lib/spandx/cli.rb) | 2 | ||||
| -rw-r--r-- | spec/spec_helper.rb | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -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 diff --git a/lib/spandx/cli.rb b/lib/spandx/spandx_cli.rb index ef33d95..98b2b80 100644 --- a/lib/spandx/cli.rb +++ b/lib/spandx/spandx_cli.rb @@ -7,7 +7,7 @@ require 'spandx/cli/commands/index' require 'spandx/cli/commands/scan' module Spandx - class CLI < Thor + class SpandxCli < Thor Error = Class.new(StandardError) desc 'version', 'spandx version' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index aed89e7..9751b50 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,7 +2,7 @@ require 'bundler/setup' require 'spandx' -require 'spandx/cli' +require 'spandx/spandx_cli' require 'rspec-benchmark' require 'securerandom' |
