This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
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
|