1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#894: Combine commands with shell.and_ in docker_login rule

This commit is contained in:
Divy Jain 2020-12-28 04:04:08 +05:30 committed by Pablo Santiago Blum de Aguiar
parent 58ddd4338a
commit a2a6cbdc70

View File

@ -1,4 +1,5 @@
from thefuck.utils import for_app
from thefuck.shells import shell
@for_app('docker')
@ -9,4 +10,4 @@ def match(command):
def get_new_command(command):
return 'docker login && {}'.format(command.script)
return shell.and_('docker login', command.script)