fix(aliases): group properly aliases (#11546)

This commit is contained in:
Karim Benbourenane 2023-03-07 03:25:34 -05:00 committed by GitHub
parent 3b759c5dc9
commit 06c16175ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ def parse(line):
def cheatsheet(lines):
exps = [ parse(line) for line in lines ]
exps.sort(key=lambda exp:exp[2])
cheatsheet = {'_default': []}
for key, group in itertools.groupby(exps, lambda exp:exp[2]):
group_list = [ item for item in group ]