@aliases("<STR_LIT>", "<STR_LIT>")<EOL>@selected_course<EOL>def list_all(course, single=None):
def bs(val):<EOL><INDENT>return "<STR_LIT>" if val else "<STR_LIT:U+0020>"<EOL><DEDENT>def bc(val):<EOL><INDENT>return as_success("<STR_LIT>") if val else as_error("<STR_LIT>")<EOL><DEDENT>def format_line(exercise):<EOL><INDENT>return "<STR_LIT>".format(exercise.tid,<EOL>bs(exercise.is_selected),<EOL>bc(exercise.is_downloaded),<EOL>bc(exercise.is_completed),<EOL>exercise.menuname())<EOL><DEDENT>print("<STR_LIT>".format(<EOL>(len(str(course.exercises[<NUM_LIT:0>].tid)) - <NUM_LIT:1>) * "<STR_LIT:U+0020>"<EOL>))<EOL>if single:<EOL><INDENT>print(format_line(single))<EOL>return<EOL><DEDENT>for exercise in course.exercises:<EOL><INDENT>print(format_line(exercise))<EOL><DEDENT>
Lists all of the exercises in the current course.