diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-14 15:50:53 -0500 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-11-14 16:22:03 -0500 |
commit | befad28f3041b2c26589ed7fc0e19fbe52893806 (patch) | |
tree | 2b6fea9f35f9d7f852e38f272699f4801c78c848 /bin | |
parent | 93e9be2f69a916935ec97322a75b8516527e5b7e (diff) |
Resync prism delete bin/dot
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dot | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bin/dot b/bin/dot deleted file mode 100755 index 343d00e31e..0000000000 --- a/bin/dot +++ /dev/null @@ -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 -) |