mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
#894: Combine commands with shell.and_ in docker_login rule
This commit is contained in:
parent
58ddd4338a
commit
a2a6cbdc70
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user