mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-11-04 09:02:08 +00:00 
			
		
		
		
	#894: Combine commands with shell.and_ in docker_login rule
This commit is contained in:
		
				
					committed by
					
						
						Pablo Santiago Blum de Aguiar
					
				
			
			
				
	
			
			
			
						parent
						
							58ddd4338a
						
					
				
				
					commit
					a2a6cbdc70
				
			@@ -1,4 +1,5 @@
 | 
				
			|||||||
from thefuck.utils import for_app
 | 
					from thefuck.utils import for_app
 | 
				
			||||||
 | 
					from thefuck.shells import shell
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@for_app('docker')
 | 
					@for_app('docker')
 | 
				
			||||||
@@ -9,4 +10,4 @@ def match(command):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_new_command(command):
 | 
					def get_new_command(command):
 | 
				
			||||||
    return 'docker login && {}'.format(command.script)
 | 
					    return shell.and_('docker login', command.script)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user