Bug 1293493 - Remove mach rage since it was unused; r=ted

We've had 4 submissions in 2017. jgriffin and I agreed that it was a
failed experiment and we should either abandon it or figure out how
to increase participation. Since nobody is available to improve it,
I'm inclined to just delete it. If we want to bring it back, it is
always in version control.

MozReview-Commit-ID: AizkZxjQ8IJ

--HG--
extra : rebase_source : 0e29058cfc909fb51fc56fa9b46c0e0a6eef0bf9
This commit is contained in:
Gregory Szorc 2017-04-24 16:33:51 -07:00
parent 34f10e53bc
commit 332db65e17

View File

@ -9,7 +9,6 @@ import os
import stat
import platform
import errno
import subprocess
from mach.decorators import (
CommandArgument,
@ -80,59 +79,6 @@ class UUIDProvider(object):
print((' { ' + '0x%s, ' * 7 + '0x%s } }') % pairs)
@CommandProvider
class RageProvider(MachCommandBase):
@Command('rage', category='misc',
description='Express your frustration')
def rage(self):
"""Have a bad experience developing Firefox? Run this command to
express your frustration.
This command will open your default configured web browser to a short
form where you can submit feedback. Just close the tab when done.
"""
import getpass
import urllib
import webbrowser
# Try to resolve the current user.
user = None
with open(os.devnull, 'wb') as null:
if os.path.exists(os.path.join(self.topsrcdir, '.hg')):
try:
user = subprocess.check_output(['hg', 'config',
'ui.username'],
cwd=self.topsrcdir,
stderr=null)
i = user.find('<')
if i >= 0:
user = user[i + 1:-2]
except subprocess.CalledProcessError:
pass
elif os.path.exists(os.path.join(self.topsrcdir, '.git')):
try:
user = subprocess.check_output(['git', 'config', '--get',
'user.email'],
cwd=self.topsrcdir,
stderr=null)
except subprocess.CalledProcessError:
pass
if not user:
try:
user = getpass.getuser()
except Exception:
pass
url = 'https://docs.google.com/a/mozilla.com/forms/d/e/1FAIpQLSeDVC3IXJu5d33Hp_ZTCOw06xEUiYH1pBjAqJ1g_y63sO2vvA/viewform' # noqa: E501
if user:
url += '?entry.1281044204=%s' % urllib.quote(user)
print('Please leave your feedback in the opened web form')
webbrowser.open_new_tab(url)
@CommandProvider
class PastebinProvider(object):
@Command('pastebin', category='misc',