Files
thefuck/thefuck/rules/tsuru_login.py
T
Pablo Santiago Blum de Aguiar 2117659c40 Add tsuru_login rule
2015-07-25 23:33:38 -03:00

12 lines
313 B
Python

from thefuck import shells
def match(command, settings):
return (command.script.startswith('tsuru')
and 'not authenticated' in command.stderr
and 'session has expired' in command.stderr)
def get_new_command(command, settings):
return shells.and_('tsuru login', command.script)