Don't change the names of existing functions or classes, as they may be referenced from other code like unit tests, etc.
-- Move the 'get_role_man_text' method from the 'DocCLI' class to be a top level function
UPDATE FUNCTION
FROM FILE "doc.py"
WHERE NAME = "get_role_man_text"
MOVE WHOLE
INSERT BEFORE LINE "class DocCLI(CLI, RoleMixin):"
RELATIVE INDENTATION 0;
-- Update call to 'self.get_role_man_text' to call the new top-level function 'get_role_man_text'
UPDATE FUNCTION
FROM FILE "doc.py"
WHERE NAME = "_display_role_doc"
REPLACE LINE "text += self.get_role_man_text(role, role_json[role])"
WITH CONTENT '''
@0: text += get_role_man_text(role, role_json[role])
'''
Tokens: 26k sent, 199 received. Cost: $0.09 message, $0.09 session.
Applied edit to doc.py
.
----
Ran 1 test in 0.019s
OK