Docker login (#894)
* Add docker_login rule * Add docker_login rule * Whitespace fix * Fix typo in test case * Fix typo in test case * Add test cases
This commit is contained in:
committed by
Vladimir Iakovlev
parent
1208faaabb
commit
828ae537da
@@ -0,0 +1,12 @@
|
||||
from thefuck.utils import for_app
|
||||
|
||||
|
||||
@for_app('docker')
|
||||
def match(command):
|
||||
return ('docker' in command.script
|
||||
and "access denied" in command.output
|
||||
and "may require 'docker login'" in command.output)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return 'docker login && {}'.format(command.script)
|
||||
Reference in New Issue
Block a user