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.27 bin/ix-confirm
ix-cli-0.0.26 bin/ix-confirm
ix-cli-0.0.25 bin/ix-confirm
ix-cli-0.0.24 bin/ix-confirm
ix-cli-0.0.23 bin/ix-confirm
ix-cli-0.0.22 bin/ix-confirm
ix-cli-0.0.21 bin/ix-confirm
ix-cli-0.0.20 bin/ix-confirm
ix-cli-0.0.19 bin/ix-confirm
ix-cli-0.0.18 bin/ix-confirm
ix-cli-0.0.17 bin/ix-confirm
ix-cli-0.0.16 bin/ix-confirm
ix-cli-0.0.15 bin/ix-confirm
ix-cli-0.0.14 bin/ix-confirm
ix-cli-0.0.13 bin/ix-confirm
ix-cli-0.0.12 bin/ix-confirm
ix-cli-0.0.11 bin/ix-confirm
ix-cli-0.0.10 bin/ix-confirm
ix-cli-0.0.9 bin/ix-confirm
ix-cli-0.0.7 bin/ix-confirm