def docs
      unless identifier = shift_argument
        error("Usage: heroku addons:docs ADDON\nMust specify ADDON to open docs for.")
      end
      validate_arguments!

      # If it looks like a plan, optimistically open docs, otherwise try to
      # lookup a corresponding add-on and open the docs for its service.
      if identifier.include?(':') || get_service(identifier)
        identifier = identifier.split(':').first
        launchy("Opening #{identifier} docs", addon_docs_url(identifier))
      else
        # searching by any number of things
        addon = resolve_addon!(identifier)
        service = addon['addon_service']['name']
        launchy("Opening #{service} docs", addon_docs_url(service))
      end
    end
def docs
      unless identifier = shift_argument
        error("Usage: heroku addons:docs ADDON\nMust specify ADDON to open docs for.")
      end
      validate_arguments!

      # If it looks like a plan, optimistically open docs, otherwise try to
      # lookup a corresponding add-on and open the docs for its service.
      if identifier.include?(':') || get_service(identifier)
        identifier = identifier.split(':').first
        launchy("Opening #{identifier} docs", addon_docs_url(identifier))
      else
        # searching by any number of things
        addon = resolve_addon!(identifier)
        service = addon['addon_service']['name']
        launchy("Opening #{service} docs", addon_docs_url(service))
      end
    end
addons:docs ADDON_NAME

 open an add-on's documentation in your browser