<s> import sublime <EOL> from . base import DeleteBaseCommand <EOL> class NodesShutdownCommand ( DeleteBaseCommand ) : <EOL> command_name = "<STR_LIT>" <EOL> def is_enabled ( self ) : <EOL> return True <EOL> def update_command_name ( self , node_id ) : <EOL> if node_id in ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) : <EOL> self . command_name = "<STR_LIT>" . format ( <EOL> base = self . command_name , <EOL> node_id = node_id [ <NUM_LIT:1> : ] <EOL> ) <EOL> def run_request ( self , node_id ) : <EOL> self . update_command_name ( node_id ) <EOL> if sublime . ok_cancel_dialog ( "<STR_LIT>" , ok_title = '<STR_LIT>' ) : <EOL> options = dict ( ) <EOL> return self . client . nodes . shutdown ( ** options ) </s>
