Resync prism delete bin/dot

This commit is contained in:
Kevin Newton 2023-11-14 15:50:53 -05:00
parent 93e9be2f69
commit befad28f30
No known key found for this signature in database
GPG key ID: 0EAD74C79EC73F26
2 changed files with 0 additions and 115 deletions

21
bin/dot
View file

@ -1,21 +0,0 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
$:.unshift(File.expand_path("../lib", __dir__))
require "prism"
result =
if ARGV[0] == "-e"
Prism.parse(ARGV[1])
else
Prism.parse_file(ARGV[0] || "test.rb")
end
File.write(
"out.svg",
IO.popen("dot -Tsvg", "w+") do |file|
file.write(result.value.to_dot)
file.close_write
file.read
end
)