mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-19 17:20:39 +01:00
12 lines
240 B
Python
12 lines
240 B
Python
import re
|
|
from thefuck.utils import for_app
|
|
|
|
|
|
@for_app('heroku')
|
|
def match(command):
|
|
return 'Run heroku _ to run' in command.output
|
|
|
|
|
|
def get_new_command(command):
|
|
return re.findall('Run heroku _ to run ([^.]*)', command.output)[0]
|