#NEWLINE# @ cli . init ( parser ) #NEWLINE# def main( args ) : #NEWLINE# #INDENT# term = blessings . Terminal ( ) #NEWLINE# if ( platform . system ( ) == 'Darwin' ) : #NEWLINE# #INDENT# os . environ [ 'no_proxy' ] = '*' #NEWLINE# #UNINDENT# task = MASTER . task ( args . task ) #NEWLINE# cmd = [ 'ssh' , '-t' , task . slave [ 'hostname' ] , 'cd {0} && bash' . format ( task . directory ) ] #NEWLINE# if ( task . directory == '' ) : #NEWLINE# #INDENT# print ( ( ( ( ( term . red + 'warning: the task no longer exists on the ' ) + 'target slave. Will not enter sandbox' ) + term . white ) + '\n\n' ) ) #NEWLINE# cmd = cmd [ : ( - 1 ) ] #NEWLINE# #UNINDENT# log . fn ( os . execvp , 'ssh' , cmd )