mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
13 lines
314 B
Python
13 lines
314 B
Python
from thefuck import shells
|
|
from thefuck.utils import for_app
|
|
|
|
|
|
@for_app('tsuru')
|
|
def match(command, settings):
|
|
return ('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)
|