Class: Spoom::Cli::Main

Inherits:
Thor
  • Object
show all
Extended by:
T::Sig
Includes:
Helper
Defined in:
lib/spoom/cli.rb

Constant Summary collapse

SORT_CODE =
"code"
SORT_LOC =
"loc"
SORT_ENUM =
[SORT_CODE, SORT_LOC]

Constants included from Helper

Helper::HIGHLIGHT_COLOR

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper

#blue, #color?, #colorize, #context, #context_requiring_sorbet!, #cyan, #exec_path, #gray, #green, #highlight, #red, #say, #say_error, #say_warning, #yellow

Methods included from Spoom::Colorize

#set_color

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


108
109
110
# File 'lib/spoom/cli.rb', line 108

def exit_on_failure?
  true
end

Instance Method Details

#__print_versionObject



101
102
103
# File 'lib/spoom/cli.rb', line 101

def __print_version
  puts "Spoom v#{Spoom::VERSION}"
end

#bump(directory = ".") ⇒ Object



58
59
60
61
62
# File 'lib/spoom/cli.rb', line 58

def bump(directory = ".")
  say_warning("This command is deprecated. Please use `spoom srb bump` instead.")

  invoke(Cli::Srb::Bump, :bump, [directory], options)
end

#coverage(*args) ⇒ Object



65
66
67
68
69
# File 'lib/spoom/cli.rb', line 65

def coverage(*args)
  say_warning("This command is deprecated. Please use `spoom srb coverage` instead.")

  invoke(Cli::Srb::Coverage, args, options)
end

#lsp(*args) ⇒ Object



75
76
77
78
79
# File 'lib/spoom/cli.rb', line 75

def lsp(*args)
  say_warning("This command is deprecated. Please use `spoom srb lsp` instead.")

  invoke(Cli::Srb::LSP, args, options)
end

#tc(*paths_to_select) ⇒ Object



94
95
96
97
98
# File 'lib/spoom/cli.rb', line 94

def tc(*paths_to_select)
  say_warning("This command is deprecated. Please use `spoom srb tc` instead.")

  invoke(Cli::Srb::Tc, :tc, paths_to_select, options)
end