def index
      validate_arguments!
      keys = api.get_keys.body
      if keys.length > 0
        styled_header("#{Heroku::Auth.user} Keys")
        keys = if options[:long]
          keys.map {|key| key["contents"].strip}
        else
          keys.map {|key| format_key_for_display(key["contents"])}
        end
        styled_array(keys)
      else
        display("You have no keys.")
      end
    end
def index
      validate_arguments!
      keys = api.get_keys.body
      if keys.length > 0
        styled_header("#{Heroku::Auth.user} Keys")
        keys = if options[:long]
          keys.map {|key| key["contents"].strip}
        else
          keys.map {|key| format_key_for_display(key["contents"])}
        end
        styled_array(keys)
      else
        display("You have no keys.")
      end
    end
keys

 display keys for the current user

 -l, --long  # display extended information for each key

Examples:

 $ heroku keys
 === email@example.com Keys
 ssh-rsa ABCDEFGHIJK...OPQRSTUV== email@example.com

 $ heroku keys --long
 === email@example.com Keys
 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp9AJD5QABmOcrkHm6SINuQkDefaR0MUrfgZ1Pxir3a4fM1fwa00dsUwbUaRuR7FEFD8n1E9WwDf8SwQTHtyZsJg09G9myNqUzkYXCmydN7oGr5IdVhRyv5ixcdiE0hj7dRnOJg2poSQ3Qi+Ka8SVJzF7nIw1YhuicHPSbNIFKi5s0D5a+nZb/E6MNGvhxoFCQX2IcNxaJMqhzy1ESwlixz45aT72mXYq0LIxTTpoTqma1HuKdRY8HxoREiivjmMQulYP+CxXFcMyV9kxTKIUZ/FXqlC6G5vSm3J4YScSatPOj9ID5HowpdlIx8F6y4p1/28r2tTl4CY40FFyoke4MQ== email@example.com