1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-19 17:20:39 +01:00
thefuck/thefuck/rules/heroku_not_command.py
2017-08-31 17:58:56 +02:00

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]