class Do < Process def self.require_cmd(cmd : String) unless Process.run("which", [ cmd ]).success? STDERR.puts "#{cmd} isn't installed" exit 1 end end end