mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-23 19:18:46 +00:00
13 lines
353 B
Python
13 lines
353 B
Python
from thefuck.utils import for_app
|
|
|
|
|
|
@for_app('brew', at_least=2)
|
|
def match(command):
|
|
return ('update' in command.script
|
|
and "Error: This command updates brew itself" in command.stderr
|
|
and "Use 'brew upgrade <formula>'" in command.stderr)
|
|
|
|
|
|
def get_new_command(command):
|
|
return command.script.replace('update', 'upgrade')
|