Sha256: b74b42c11991e960aaad0751e8f93df332b06b123568d10c04f112f54efcff80

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 Bytes

Contents

require 'mixlib/cli'

module Mysql2xxxx
  class Cli
    include ::Mixlib::CLI
    %w{ user password host Port database }.each do |o|
      option o.downcase.to_sym,
        :short => "-#{o[0,1]} #{o.upcase}",
        :long  => "--#{o.downcase}=#{o.upcase}",
        :description => "Set MySQL #{o.downcase}"
    end
    option :execute,
      :short => '-e EXECUTE',
      :long  => '--execute=EXECUTE',
      :description => 'The SQL statement to execute'
    option :help,
      :long => "--help",
      :description => "Show this message",
      :on => :tail,
      :boolean => true,
      :show_options => true,
      :exit => 0
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mysql2xxxx-0.2.1 lib/mysql2xxxx/cli.rb
mysql2xxxx-0.2.0 lib/mysql2xxxx/cli.rb
mysql2xxxx-0.0.4 lib/mysql2xxxx/cli.rb
mysql2xxxx-0.0.3 lib/mysql2xxxx/cli.rb
mysql2xxxx-0.0.2 lib/mysql2xxxx/cli.rb
mysql2xxxx-0.0.1 lib/mysql2xxxx/cli.rb