Skip to content

Commit

Permalink
Add task with docs for builtin generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Apr 14, 2020
1 parent 02303b3 commit d928d64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/generate/builtins.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace :generate do
desc "Generate the builtins for the given language"
task :builtins, [:lang] do |t, args|
exit unless args.lang

builtin_task = "builtins:#{args.lang.downcase}"
if Rake::Task.task_defined? builtin_task
Rake::Task[builtin_task].invoke
else
puts "There is no builtin generator for #{args.lang}"
end
end
end

0 comments on commit d928d64

Please sign in to comment.