'use strict'

const api = require('../lib/shared')
const cli = require('heroku-cli-util')

module.exports = {
  topic: 'redis',
  command: 'info',
  needsApp: true,
  needsAuth: true,
  args: [{ name: 'database', optional: true }],
  description: 'gets information about redis',
  run: cli.command((ctx, heroku) => api(ctx, heroku).info())
}
