Class: Spoom::Cli::Main

Inherits:
Thor
  • Object
show all
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, #collect_files, #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)


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

def exit_on_failure?
  true
end

Instance Method Details

#__print_versionObject



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

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

#bump(directory = ".") ⇒ Object

: (?String directory) -> void



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

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



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

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



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

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



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

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