Sha256: 81a9e434c57eeee93ef4593e4e85557c06866da90a768c36e266b9fa0ade70f3
Contents?: true
Size: 494 Bytes
Versions: 7
Compression:
Stored size: 494 Bytes
Contents
# encoding: utf-8 require_relative "../lib/tty-prompt" choices = [{ key: 'y', name: 'overwrite this file', value: :yes }, { key: 'n', name: 'do not overwrite this file', value: :no }, { key: 'a', name: 'overwrite this file and all later files', value: :all }, { key: 'd', name: 'show diff', value: :diff }, { key: 'q', name: 'quit; do not overwrite this file ', value: :quit }] prompt = TTY::Prompt.new prompt.expand('Overwrite Gemfile?', choices, default: 3)
Version data entries
7 entries across 7 versions & 1 rubygems