Sha256: 89bde1e0e8fc80f44b97b4d71ae0fde8799fcd0ea42bb05a5a2f7ef3d84c41b2
Contents?: true
Size: 664 Bytes
Versions: 26
Compression:
Stored size: 664 Bytes
Contents
#!/usr/bin/env ruby commands = [] File.read(ARGV[0]).each_line do |line| commands.push(line.chomp) end commands.each do |command| puts "confirm: #{command}" x = gets puts x # puts "Confirm (abort, skip, yes, or y): #{command} " # puts "response: #{response.inspect}" # next # if response == "abort\n" # puts 'Exiting now..' # exit 0 # end # if response == "skip\n" # puts 'Skipping..' # next # end # if response == "yes\n" # puts 'Executing..' # system command # next # end # if response == "y\n" # puts 'Executing..' # system command # next # end # puts 'doing nothing..' end
Version data entries
26 entries across 26 versions & 1 rubygems
Version | Path |
---|---|
ix-cli-0.0.6 | bin/ix-confirm |
ix-cli-0.0.5 | bin/ix-confirm |
ix-cli-0.0.4 | bin/ix-confirm |
ix-cli-0.0.3 | bin/ix-confirm |
ix-cli-0.0.2 | bin/ix-confirm |
ix-cli-0.0.1 | bin/ix-confirm |