@click.command()<EOL>@click.argument('<STR_LIT>', nargs=-<NUM_LIT:1>)<EOL>def list(pattern=()):
<EOL>globs = ['<STR_LIT>'.format(p) for p in pattern] + ['<STR_LIT:*>']<EOL>matches = []<EOL>offset = len(PROJ_ARCHIVE) + <NUM_LIT:1><EOL>for suffix in globs:<EOL><INDENT>glob_pattern = os.path.join(PROJ_ARCHIVE, '<STR_LIT:*>', '<STR_LIT:*>', suffix)<EOL>matches.append(set(<EOL>f[offset:] for f in glob.glob(glob_pattern)<EOL>))<EOL><DEDENT>matches = reduce(lambda x, y: x.intersection(y),<EOL>matches)<EOL>for m in sorted(matches):<EOL><INDENT>print(m)<EOL><DEDENT>
List the contents of the archive directory.