зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285484 - Remove "mach mxr" command. r=gps
Remove it due to the announcement "MXR permanently offline". https://groups.google.com/forum/#!topic/mozilla.dev.platform/_k-ditFrne4 MozReview-Commit-ID: HvQ18uABGec --HG-- extra : rebase_source : 2977dcf40f713eb284de8989e257a26263f358c6
This commit is contained in:
Родитель
854085c454
Коммит
fe24b5c55f
|
@ -21,15 +21,6 @@ from mozbuild.base import MachCommandBase, MozbuildObject
|
|||
|
||||
@CommandProvider
|
||||
class SearchProvider(object):
|
||||
@Command('mxr', category='misc',
|
||||
description='Search for something in MXR.')
|
||||
@CommandArgument('term', nargs='+', help='Term(s) to search for.')
|
||||
def mxr(self, term):
|
||||
import webbrowser
|
||||
term = ' '.join(term)
|
||||
uri = 'https://mxr.mozilla.org/mozilla-central/search?string=%s' % term
|
||||
webbrowser.open_new_tab(uri)
|
||||
|
||||
@Command('dxr', category='misc',
|
||||
description='Search for something in DXR.')
|
||||
@CommandArgument('term', nargs='+', help='Term(s) to search for.')
|
||||
|
@ -60,12 +51,12 @@ class SearchProvider(object):
|
|||
@Command('search', category='misc',
|
||||
description='Search for something on the Internets. '
|
||||
'This will open 3 new browser tabs and search for the term on Google, '
|
||||
'MDN, and MXR.')
|
||||
'MDN, and DXR.')
|
||||
@CommandArgument('term', nargs='+', help='Term(s) to search for.')
|
||||
def search(self, term):
|
||||
self.google(term)
|
||||
self.mdn(term)
|
||||
self.mxr(term)
|
||||
self.dxr(term)
|
||||
|
||||
|
||||
@CommandProvider
|
||||
|
|
Загрузка…
Ссылка в новой задаче