Sha256: aac34e6e1b05a70de00778729b1e03171da1476d4fd7322eca9e476b95db5fb8
Contents?: true
Size: 191 Bytes
Versions: 2
Compression:
Stored size: 191 Bytes
Contents
# frozen_string_literal: true require_relative '../lib/tty-command' cmd = TTY::Command.new f = 'file' if cmd.test("[ -f #{f} ]") puts "#{f} already exists!" else cmd.run :touch, f end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.9.0 | examples/bash.rb |
tty-command-0.8.2 | examples/bash.rb |