Last active
May 22, 2023 15:55
-
-
Save katsyoshi/15a9dcc1c22fa3294e829457947b3608 to your computer and use it in GitHub Desktop.
steep type check task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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