Sha256: 0bf10ce833aa3f042c493ed33e6a78f3e7e36bc16722a065421f567a28afb58c
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module CommandHelper def run_command(command) say "\n#{command.yellow}" system command end def open_path(path) system_command = case RbConfig::CONFIG['host_os'] when /mswin|mingw|cygwin/ 'start' when /darwin/ 'open' when /linux|bsd/ 'xdg-open' end run_command "#{system_command} #{path}" end end
Version data entries
4 entries across 4 versions & 1 rubygems