Skip to content

Instantly share code, notes, and snippets.

@katsyoshi
Last active May 22, 2023 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katsyoshi/15a9dcc1c22fa3294e829457947b3608 to your computer and use it in GitHub Desktop.
Save katsyoshi/15a9dcc1c22fa3294e829457947b3608 to your computer and use it in GitHub Desktop.
steep type check task
require "steep"
require "steep/cli"
namespace :steep do
desc "steep type check"
task :check do |_t, options|
steep_cmd_task(:check, *options.to_a)
end
desc "steep type annotations"
task :annotations do |_t, options|
steep_cmd_task(:annotations, *options.to_a)
end
end
def steep_cmd_task(*commands) = Steep::CLI.new(argv: commands, stdout: STDOUT, stdin: STDIN, stderr: STDERR).run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment