Class: Tapioca::Commands::Todo

Inherits:
CommandWithoutTracker show all
Includes:
SorbetHelper
Defined in:
lib/tapioca/commands/todo.rb

Constant Summary collapse

DEPRECATION_MESSAGE =
T.let(<<~DEPRECATION, String)
  The `todo` command is deprecated and will be removed in a future release.

  If your project is still missing type definitions for constants, try the following:
  1. Regenerate gem RBIs by running `bin/tapioca gem --all` and `bin/tapioca annotations`
  2. Generate RBIs for DSLs by running `bin/tapioca dsl`
  3. If the missing constants are defined in files that a gem does not load by default,
     manually require those files in `sorbet/tapioca/require.rb` and regenerate gem RBIs
  4. Manually create an RBI shim defining the missing constants
DEPRECATION

Constants included from SorbetHelper

SorbetHelper::FEATURE_REQUIREMENTS, SorbetHelper::SORBET_BIN, SorbetHelper::SORBET_EXE_PATH_ENV_VAR, SorbetHelper::SORBET_GEM_SPEC, SorbetHelper::SORBET_PAYLOAD_URL, SorbetHelper::SPOOM_CONTEXT

Instance Method Summary collapse

Methods included from SorbetHelper

#sorbet, #sorbet_path, #sorbet_supports?

Methods inherited from Command

#run

Methods included from Tapioca::CliHelper

#netrc_file, #rbi_formatter, #say_error

Constructor Details

#initialize(todo_file:, file_header:) ⇒ Todo

Returns a new instance of Todo.



26
27
28
29
30
31
# File 'lib/tapioca/commands/todo.rb', line 26

def initialize(todo_file:, file_header:)
  @todo_file = todo_file
  @file_header = file_header

  super()
end

Instance Method Details

#run_with_deprecationObject



34
35
36
37
38
39
# File 'lib/tapioca/commands/todo.rb', line 34

def run_with_deprecation
  say(DEPRECATION_MESSAGE, :red)
  say("")

  run
end