Sha256: 7b96e1f6b1e84a559db2699eb66237d6eac76ee64ade336c54bfbf773f41c763

Contents?: true

Size: 766 Bytes

Versions: 2

Compression:

Stored size: 766 Bytes

Contents

class Posgra::CLI::App < Thor
  class_option :host, :default => 'localhost', :aliases => '-h'
  class_option :port, :type => :numeric, :default => 5432, :aliases => '-p'
  class_option :dbname, :default => 'postgres', :aliases => '-d'
  class_option :user, :aliases => '-U'
  class_option :password, :aliases => '-P'
  class_option :'account-output', :default => 'account.csv'
  class_option :color, :type => :boolean, :default => true
  class_option :debug, :type => :boolean, :default => false

  desc 'role SUBCOMMAND', 'Manage roles'
  subcommand :role, Posgra::CLI::Role

  desc 'grant SUBCOMMAND', 'Manage grants'
  subcommand :grant, Posgra::CLI::Grant

  desc 'database SUBCOMMAND', 'Manage database grants'
  subcommand :database, Posgra::CLI::Database
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
posgra-0.2.1 lib/posgra/cli/app.rb
posgra-0.2.0 lib/posgra/cli/app.rb