#351 Speed-up mvn rules, pep8 fixes

This commit is contained in:
nvbn
2015-08-27 16:10:50 +03:00
parent 9103c1ffd5
commit f2a7364e8c
3 changed files with 30 additions and 14 deletions
+6 -3
View File
@@ -1,8 +1,11 @@
from thefuck import shells
from thefuck.utils import for_app
@for_app('mvn')
def match(command, settings):
return 'No goals have been specified for this build' in command.stdout and command.script.startswith('mvn')
return 'No goals have been specified for this build' in command.stdout
def get_new_command(command, settings):
return [ command.script + ' clean package', command.script + ' clean install']
return [command.script + ' clean package',
command.script + ' clean install']