Skip to content

Commit 1409f47

Browse files
authored
Merge pull request #1297 from volatilityfoundation/1296-sort-volshell-methods-alphabetically
refs #1296 sort volshell methods alphabetically in hh() output
2 parents eb74437 + cb98a08 commit 1409f47

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

volatility3/cli/volshell/generic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def help(self, *args):
112112

113113
variables = []
114114
print("\nMethods:")
115-
for aliases, item in self.construct_locals():
115+
for aliases, item in sorted(self.construct_locals()):
116116
name = ", ".join(aliases)
117117
if item.__doc__ and callable(item):
118118
print(f"* {name}")
@@ -125,8 +125,7 @@ def help(self, *args):
125125
print(f" {var}")
126126

127127
def construct_locals(self) -> List[Tuple[List[str], Any]]:
128-
"""Returns a dictionary listing the functions to be added to the
129-
environment."""
128+
"""Returns a listing of the functions to be added to the environment."""
130129
return [
131130
(["dt", "display_type"], self.display_type),
132131
(["db", "display_bytes"], self.display_bytes),

0 commit comments

Comments
 (0)