(self, name: str)
return Variable(formatted_item.split(' = ')[0], formatted_item)
Generates a nautilus command variable.
Generates a nautilus command variable.
Generates a nautilus command variable .
def generate_item(self, name: str):
        '''
        Generates a nautilus command variable.
        '''
        base_command = ExistingCode.MENU_ITEM.value
        formatted_item = base_command.format(self.counter, name, name, '', '')
        self.counter += 1

        return Variable(formatted_item.split(' = ')[0], formatted_item)
def generate_item ( self , name : str ) : base_command = ExistingCode . MENU_ITEM . value formatted_item = base_command . format ( self . counter , name , name , '' , '' ) self . counter += 1 return Variable ( formatted_item . split ( ' = ' ) [ 0 ] , formatted_item )