Skip to content

Commit

Permalink
Make order of arch list output persistant
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Jun 2, 2024
1 parent 797da24 commit 46f44f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -4822,7 +4822,7 @@ class ArchListCommand(GenericCommand):

def do_invoke(self, args: List[str]) -> None:
gef_print(Color.greenify("Available architectures:"))
for arch in set(__registered_architectures__.values()):
for arch in sorted(set(__registered_architectures__.values()), key=lambda x: x.arch):
if arch != GenericArchitecture:
gef_print(' ' + Color.yellowify(arch()))
for alias in filter(lambda x: isinstance(x, str), arch.aliases):
Expand Down

0 comments on commit 46f44f4

Please sign in to comment.