Merge pull request #316 from scorphus/tsuru-login
Add `tsuru_login` rule
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user